api-client-generator icon indicating copy to clipboard operation
api-client-generator copied to clipboard

Consumes - application/json not being passed to APIClient

Open MumblesNZ opened this issue 6 years ago • 2 comments

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 =).

MumblesNZ avatar Jul 02 '18 02:07 MumblesNZ

Thanks for the report, it is probably not intended, we'll investigate that.

vmasek avatar Jul 02 '18 08:07 vmasek

The whole generation of what API consumes and returns needs to be refactored along with OpenAPI 3 spec compliance.

vmasek avatar Sep 01 '18 18:09 vmasek