Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types.enum: false still seems to export enums #1143

Open
Stono opened this issue Oct 11, 2024 · 2 comments
Open

types.enum: false still seems to export enums #1143

Stono opened this issue Oct 11, 2024 · 2 comments
Labels
bug 🔥 Something isn't working
Milestone

Comments

@Stono
Copy link
Contributor

Stono commented Oct 11, 2024

Description

I have the following config:

    types: {
      export: true,
      enums: false
    }

And I'm using zod-openapi to define my DTO:
Screenshot 2024-10-11 at 12 02 07

Which in turn gives me the correct swagger json:
Screenshot 2024-10-11 at 12 02 03

However in my client gen, i'm still getting a type exported for that enum:
Screenshot 2024-10-11 at 12 03 36

Interestingly it's inline (as i'd expect) but then status type is exported to (and not used anywhere)

Reproducible example or configuration

No response

OpenAPI specification (optional)

No response

System information (optional)

0.53.9

@Stono Stono added the bug 🔥 Something isn't working label Oct 11, 2024
@mrlubos mrlubos added this to the Parser milestone Oct 20, 2024
@mrlubos
Copy link
Member

mrlubos commented Oct 20, 2024

This will be fixed as part of a broader parser release, thank you for your patience as always 🙏

@Stono
Copy link
Contributor Author

Stono commented Oct 20, 2024

No worries, thank you for saving me a load of time writing my own client gen 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🔥 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants