-
Notifications
You must be signed in to change notification settings - Fork 43
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
0 does not work as schema key #62
Comments
Not sure that alone would solve your case but in those two lines:
could be replaced with
Would you like to give it a try? |
@lafrech the problem occurs during schema load. |
👍 for the suggested solution, would also solve my use case with: class MySchema(OneOfSchema):
type_schemas = {
True: Schema1,
False: Schema2
} But I think this should be generalized to support |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Suppose I want to map schemas like this:
When I try to load data with type 0, I get exception 'Missing data for required field.'.
The text was updated successfully, but these errors were encountered: