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
When an OpenAPI spec does not specify a response body for a response (say 204 No Content), the generated type for that response becomes never, which omits any headers that might be specfied for that response.
Name
Version
openapi-typescript
6.2.4
Node.js
20.1.0
OS + version
macOS 13.3.1
Reproduction
Convert the following OpenAPI schema to TypeScript using openapi-typescript:
Description
When an OpenAPI spec does not specify a response body for a response (say
204 No Content
), the generated type for that response becomesnever
, which omits any headers that might be specfied for that response.openapi-typescript
6.2.4
20.1.0
macOS 13.3.1
Reproduction
Convert the following OpenAPI schema to TypeScript using
openapi-typescript
:Expected result
paths["/foo"]["get"]["responses"][204]
is{ headers: { foo?: string; } }; content: {}; }
or something similar instead ofnever
.Checklist
The text was updated successfully, but these errors were encountered: