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
Hey @yvesInnofactory, aside, why does this endpoint have 3 different content types? text/plain and text/json are, well, text responses, so I'm not sure it even makes sense to define the same response type for all. What is your expectation here? You're correct that you can specify the responseType to force a specific way of processing the response
Description
Using
"@hey-api/openapi-ts": "^0.62.3",
"@hey-api/client-axios": "^0.5.1",
Client config:
This is part of the swagger:
Generates this sdk:
The problem is, it's not return an array but the plain string.
When I change it manually to "reponseType: 'json', then it works fine.
I can't find a way to tell openapi-ts to generate 'json' instead of 'text'.
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: