Skip to content

Conversation

@cstrnt
Copy link
Contributor

@cstrnt cstrnt commented Oct 29, 2025

Only JSON-parse when the response content-type is application/json and emit an explicit typed const data = response.json() as .... Fall back to response.body for non-JSON responses and omit the data field for void responses. Update generated examples, fixtures and generator tests (add empty_response sample) to match the new output.

fixes #55

…ponses

Only JSON-parse when the response content-type is application/json and emit
an explicit typed `const data = response.json() as ...`. Fall back to
`response.body` for non-JSON responses and omit the `data` field for void
responses. Update generated examples, fixtures and generator tests (add
empty_response sample) to match the new output.
@cstrnt cstrnt requested a review from a team as a code owner October 29, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect Typescript Types for generated Output

1 participant