Closed quentinderoubaix closed 1 year ago
The internal SDK may need to be re-generated with the latest version of the generator including the support of the consumes
headers.
@dapi/amadeus-gateway-sdk
based Otter 9.1+Thanks @quentinderoubaix for raising the point and for your contribution. We have included your fix in the version 9.1 of the ama-sdk-schematics (sdk generator) package.
Package name
generator-sdk
Package version
Latest alpha
Reproduction steps
Generate an api library using the newly schematic
ng generate sdk
and use a spec yaml file that contains a POST request withconsumes: -application/x-www-form-urlencoded
Launch the typescript services / models generation.
Current result
Observe that the typescript api will contain the following:
Expected result
The part above should be:
Additional comments
This is due to a regression in the api.mustache file when switching to the openapi generator. We are using HeaderJsonMimeType custom lambda but giving an invalid input.