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

A non-optimally resolvable collision #62

Closed
OttoAndrey opened this issue Jan 25, 2024 · 1 comment
Closed

A non-optimally resolvable collision #62

OttoAndrey opened this issue Jan 25, 2024 · 1 comment

Comments

@OttoAndrey
Copy link

Hi! I am here again with previous problem.

I tried change values to choices as you described here but it didn't help :(

drf-spectacular == 0.27.1
drf-standardized-errors == 0.12.6

python3 manage.py spectacular --file .tmp/schema.yaml --validate --fail-on-warn
Warning: enum naming encountered a non-optimally resolvable collision for fields named "type". The same name has been used for multiple choice sets in multiple components. The collision was resolved with "Type566Enum". add an entry to ENUM_NAME_OVERRIDES to fix the naming.
Warning: enum naming encountered a non-optimally resolvable collision for fields named "type". The same name has been used for multiple choice sets in multiple components. The collision was resolved with "Type982Enum". add an entry to ENUM_NAME_OVERRIDES to fix the naming.
Warning: enum naming encountered a non-optimally resolvable collision for fields named "type". The same name has been used for multiple choice sets in multiple components. The collision was resolved with "TypeDceEnum". add an entry to ENUM_NAME_OVERRIDES to fix the naming.
Warning: enum naming encountered a non-optimally resolvable collision for fields named "type". The same name has been used for multiple choice sets in multiple components. The collision was resolved with "TypeA3cEnum". add an entry to ENUM_NAME_OVERRIDES to fix the naming.
image
@OttoAndrey
Copy link
Author

I use versions
drf-spectacular = "^0.27.1"
drf-standardized-errors = {extras = ["openapi"], version = "^0.13.0"

And changed values to choices.

Now it works without warnings.

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