Replies: 1 comment
-
I think this is simply a design flaw in apischema: integer should not allow boolean values. I will add an extra check in the code. EDIT: Fixed in #385 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Python,
bool
is a subclass ofint
.Is there a simple way to exclude subclasses (other than checking in an ad-hoc deserializer) so that the following deserialization raises a validation error?
Beta Was this translation helpful? Give feedback.
All reactions