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
{{ message }}
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.
Describe the bug
When defining the responses and using the application/json;charset=UTF-8 mimetype the code generator fails to correctly type all requests and replaces the return types with void.
To Reproduce
Steps to reproduce the behavior:
Create an OpenAPI 3 schema file with this endpoint:
paths:
/api/activities:
get:
operationId: getActivities
responses:
200:
description: OK
content:
application/json;charset=UTF-8:
schema:
type: array
description: Unordered list of activity names
items:
type: string
Expected behavior
I expected the useGetActivities hook to return a string[], but it is typed as void. Replacing application/json;charset=UTF-8 with application/json fixes this issue.
Desktop (please complete the following information):
OS: macOS Catalina 10.15.2
The text was updated successfully, but these errors were encountered:
Describe the bug
When defining the responses and using the
application/json;charset=UTF-8
mimetype the code generator fails to correctly type all requests and replaces the return types withvoid
.To Reproduce
Steps to reproduce the behavior:
Create an OpenAPI 3 schema file with this endpoint:
Expected behavior
I expected the
useGetActivities
hook to return astring[]
, but it is typed asvoid
. Replacingapplication/json;charset=UTF-8
withapplication/json
fixes this issue.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: