You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate a client for an API that fetches e.g. JPG or PNG images.
Try to call such API using the client.
Related issues/PRs
Not found.
Suggest a fix
Looking at OpenAPI declaration file, information about content types requested by a given API is given there. It's a matter of using it in the code somehow. Customization of content types per API would be good to have, to not list all possible content types in a single place.
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
I'm trying to fetch image files using the generated client. It ends up with:
When I modify the
ApiClient
like so:It works as expected in my case.
openapi-generator version
5.2.0. I don't know if it ever worked before, so not sure if it's a regression.
OpenAPI declaration file content or url
See
responses
and allowedcontent
- OpenAPI is aware that some APIs expect certain content types.Generation Details
Steps to reproduce
Related issues/PRs
Not found.
Suggest a fix
Looking at OpenAPI declaration file, information about content types requested by a given API is given there. It's a matter of using it in the code somehow. Customization of content types per API would be good to have, to not list all possible content types in a single place.
The text was updated successfully, but these errors were encountered: