Api Definition by Importing OpenAPI yaml in integration-test#1569
Api Definition by Importing OpenAPI yaml in integration-test#1569vigoo merged 7 commits intogolemcloud:mainfrom
Conversation
|
Fixed the whole ticket Grpc failed because it could only accept APIDefinition::OpenAPI in Json format, now it can accept both Json and Yaml It checks for Yaml, on failure checks for Json -> and passes the value to create the api definition There are now two more tests in Now creating api definition integration test is possible through both http and grpc mode. Please Review and Accept, thank you. |
|
@mschuwalow @afsalthaj Can I have review for this PR Please In worker-service - grpc In integration-tests |
|
@Nanashi-lab I am taking a look at it now |
| let converted = OpenApiHttpApiDefinition( | ||
| serde_json::from_str(&definition).map_err(|_| bad_request("Invalid JSON"))?, | ||
| ); | ||
| // Try YAML first |
There was a problem hiding this comment.
The parsing can be extracted to a function
closes #1559
completely fixes the issue in #1559
cause -
golem-worker-service/src/grpcapi/api_definitionfix -
Now accepts both JSON and YAML, added two more tests (works in both http-mode and grpc)
deps.done file is created while doing
cargo make fix(This wasnt the case, a week+ ago)