Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork552
fix(transform): avoid duplicate enum declaration when using root types with no prefix#2351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
netlifybot commentedJun 8, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
👷 Deploy request foropenapi-ts pending review.Visit the deploys page to approve it
|
changeset-botbot commentedJun 8, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
|
@duncanbeevers can I hand this over to you? I'm not feeling sufficiently comfortable with the internals to review this. |
@gzm0 Yes I can take this. I think it's a duplicate of a couple other issues, so I'll see about taking some time to gather the various bugs + fixes together to pick the best solution. |
iw-tundo commentedJun 30, 2025
Hi, I'm also encountering this issue. Do you know if you have a rough estimate of when this will be merged and released? |
Changes
given the following settings:
the generated output will declare an enum and a type with the same name. This PR will avoid redeclaring a type if its node is an enum.
How to Review
The PR is quite minimal - code adjustment + a test
Checklist
docs/
updated (if necessary)pnpm run update:examples
run (only applicable for openapi-typescript)