flowup / api-client-generator

Angular REST API client generator from Swagger YAML or JSON file with camel case settigs
MIT License
115 stars 21 forks source link

Consumes - application/json not being passed to APIClient #62

Open MumblesNZ opened 6 years ago

MumblesNZ commented 6 years ago

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

vmasek commented 6 years ago

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

vmasek commented 6 years ago

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