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

Fix warning about multiple enum names when visting the autogenerated OpenAPI #902

Open
hmpf opened this issue Oct 9, 2024 · 0 comments
Open
Labels
API v2 Ideas for API v2, backwards incompatible OK API Affects Argus' REST API

Comments

@hmpf
Copy link
Contributor

hmpf commented Oct 9, 2024

See also #897

  • Warning: encountered multiple names for the same choice set (EventTypesEnum). This may be unwanted even though the generated schema is technically correct. Add an entry to ENUM_NAME_OVERRIDES to fix the naming.

I cannot figure out where drf-spectacular finds something to interpret as EventTypesEnum. There is also TypeEnum with the same contents. Setting ENUM_NAME_OVERRIDES does nothing.

@hmpf hmpf added API Affects Argus' REST API API v2 Ideas for API v2, backwards incompatible OK labels Oct 9, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in HTMXify Argus Oct 9, 2024
@hmpf hmpf changed the title Fix warning about namespaces when visting the autogenerated OpenAPI Fix warning about multiple enum names when visting the autogenerated OpenAPI Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API v2 Ideas for API v2, backwards incompatible OK API Affects Argus' REST API
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant