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

OpenAPI specification improvements #964

Open
dammitjanet opened this issue May 29, 2024 · 0 comments
Open

OpenAPI specification improvements #964

dammitjanet opened this issue May 29, 2024 · 0 comments

Comments

@dammitjanet
Copy link

Using Code Generators (e.g. NSwag) to generated code classes from the Spec, the enums defined in the schemas are being repeated, because the the enum values are repeated in the schema sections

e.g. the lang enum is used 4 times are generates 4 classes with the same names, this is due to the OpenAPI spec not using reusable component schemas for enumeration values

See the reusable Enums section here

Consider defining the enums as shared where appropriate.

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

1 participant