Skip to content

Keep casing for schema types exported to root - #2524

Merged
drwpow merged 4 commits into
openapi-ts:mainfrom
gunnarvelle:keep-dto-suffix
Feb 8, 2026
Merged

drwpow merged 4 commits into
openapi-ts:mainfrom
gunnarvelle:keep-dto-suffix

Conversation

@gunnarvelle

@gunnarvelle gunnarvelle commented Nov 14, 2025 •

Copy link
Copy Markdown
Contributor

Changes

#2402
Adds flag to keep casing of the schema types exported at the root of the generated typescript.

How to Review

The test options > rootTypes: true but keep casing shows the effect of the change

Checklist

  • Unit tests updated
  • docs/ updated (if necessary)
  • pnpm run update:examples run (only applicable for openapi-typescript)

@gunnarvelle
gunnarvelle requested a review from a team as a code owner November 14, 2025 09:21
@gunnarvelle
gunnarvelle requested a review from drwpow November 14, 2025 09:21
@netlify

netlify Bot commented Nov 14, 2025 •

Copy link
Copy Markdown

👷 Deploy request for openapi-ts pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 3fb1166

@changeset-bot

changeset-bot Bot commented Nov 14, 2025 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3fb1166

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

This PR includes changesets to release 2 packages
Name Type
openapi-typescript Minor
swr-openapi Major

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

@gunnarvelle gunnarvelle changed the title Keep dto suffix Keep casing for schena types exported to root Nov 14, 2025
@gunnarvelle gunnarvelle changed the title Keep casing for schena types exported to root Keep casing for schema types exported to root Nov 14, 2025

@drwpow drwpow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This flag makes sense. Great tests, thank you!

@drwpow
drwpow merged commit 697f7fe into openapi-ts:main Feb 8, 2026
7 checks passed
This was referenced Feb 8, 2026
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.

2 participants