-
Notifications
You must be signed in to change notification settings - Fork 77
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
Validating enum type #244
Comments
I came across the same problem and I am using a Literal type for now as a substitute. I don't know if that helps for your use case @zedrdave |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have installed
marshmallow-dataclass[enum,union]
as per the instructions.But when I try to validate a dataclass using an Enum/EnumField type, the validation fails.
Using marshmallow Schema directly works:
Using
marshmallow_dataclass.class_schema
fails:After looking through previous issues and code and seeing mentions of the switch from
marshmallow_enum
to the native marshmallow type, I updated the code accordingly and still getting the same problem.The text was updated successfully, but these errors were encountered: