api-client-generator
api-client-generator copied to clipboard
Consumes - application/json not being passed to APIClient
Hello,
Just wondering if it's intended that the swagger property:
"consumes": [
"application/json"
]
is meant to be ignored when generated the API client? I assumed a header would of been generated & applied to API services which have this property? Right now we are adding it to the NGModule as a universal header, but some API Client calls don't use application/json.
Is this intended behaviour or a bug?
Thanks =).
Thanks for the report, it is probably not intended, we'll investigate that.
The whole generation of what API consumes and returns needs to be refactored along with OpenAPI 3 spec compliance.