-
Notifications
You must be signed in to change notification settings - Fork 94
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
Using marshmallow.fields.Enum in TYPE_MAPPING for enum fields #485
Comments
Getting the same error with https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_2_0_2 it works with 2.0.1. For now I downgraded to sqlalchemy to 2.0.1 but not sure if I need to fix something in code or wait until this repo is fixed.
|
And Enum field can't be instantiated like this. It requires an enum as argument. |
Is there any plan to support marshmallow.fields.Enum? Or there's other ways or work around for this issue? |
Marshmallow now has fields.Enum from version 3.18. Using this in
ModelConverter.SQLA_TYPE_MAPPING
for enum fields raises exception.Stacktrace:
The text was updated successfully, but these errors were encountered: