Skip to content

Conversation

@axel7083
Copy link

@axel7083 axel7083 commented Dec 10, 2025

Fixes #1547


The snapshots have been updated using vitest --update


Note

Fixes response format detection when responses use $ref, resulting in proper "json" format in generated requests; adds test coverage and updates snapshots.

  • Core
    • Update src/schema-routes/schema-routes.ts to pass contentTypes into getRequestInfoTypes, ensuring correct contentKind/format resolution for $ref-based responses.
  • Tests
    • Add tests/spec/extractResponseRef/basic.test.ts and tests/spec/extractResponseRef/schema.json with snapshot tests/spec/extractResponseRef/__snapshots__/basic.test.ts.snap.
    • Refresh snapshots across projects to reflect explicit format: "json" in generated requests.
  • Release
    • Add changeset (.changeset/stale-masks-hug.md) for a patch bump of swagger-typescript-api.

Written by Cursor Bugbot for commit 5971174. This will update automatically on new commits. Configure here.

@changeset-bot
Copy link

changeset-bot bot commented Dec 10, 2025

🦋 Changeset detected

Latest commit: 5971174

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
swagger-typescript-api Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@smorimoto
Copy link
Collaborator

bugbot run

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no bugs!


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.

using "$ref": "#/responses/<name>" does not set request format

2 participants