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

Missing schema name for enum #4722

Closed
bennelli opened this issue Aug 28, 2024 · 1 comment
Closed

Missing schema name for enum #4722

bennelli opened this issue Aug 28, 2024 · 1 comment
Assignees

Comments

@bennelli
Copy link

The name of the model is resolved already in previous lines of code, but not set into the StringSchema in case of type enum.

@micryc
Copy link
Contributor

micryc commented Sep 16, 2024

Hi @bennelli when enumAsRef is not applied, which is the default behavior, name should not be set, and the enum should not be part of components/schemas, if you set enumAsRef to true, enum should appear as a component in generated openapi spec, is it solving your issue ? If not, please provide some details about your scenario, for now I am closing the ticket, feel free to reopen if you have any questions

@micryc micryc closed this as completed Sep 16, 2024
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

No branches or pull requests

2 participants