-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[python-experimental] models + endpoints, replace allowed_values with enums #7058
Comments
@spacether Any movement here? Accessing enums should be as simple as Type.VALUE but I can't seem to get this to work. |
No progress here yet in the python-generator or the python-legacy generator. This is difficult to implement because:
Inline Enum definitiona also means that:
I am slowly making progress on this at #8325 |
Thanks for the quick reply @spacether. So what is the proper way to access them currently? The model serialization fails if they aren't passed as I get |
The way to access them now is through allowed_values. |
If there is a bug can you open up a separate issue with a reproducible example? |
Thanks @spacether. Filed #8377 |
Closing this because python-experimental implements a singleton class which stores enum options and it will be merged soon. |
Include python Enums when the schema defines an enum
This applies to:
The text was updated successfully, but these errors were encountered: