We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 should be able to automatically cast strings to enums and throw runtime error where this is not possible
Useful in our case for backwards compatibility but also makes it convenient when you are passing strings around.
enum arguments should be string union enum
The text was updated successfully, but these errors were encountered:
This is supported in the latest version of Python generator with the following config:
config: pydantic_config: use_str_enum: true
Sorry, something went wrong.
No branches or pull requests
Problem description
Python should be able to automatically cast strings to enums and throw runtime error where this is not possible
Why would it be useful?
Useful in our case for backwards compatibility but also makes it convenient when you are passing strings around.
Describe the solution (optional)
enum arguments should be string union enum
The text was updated successfully, but these errors were encountered: