-
Notifications
You must be signed in to change notification settings - Fork 20
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
Booleans validate as integers #37
Comments
Suspect Line 708 in acdf40c
So probably needs some special handling... |
Fixed in de4a558 -> PyPI package 1.3.48 |
Awesome - thanks for the speedy turnaround! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yangson considers the Boolean
true
andfalse
as valid values for integer type nodes.For example, with this minimal schema:
Then I'd expect the following code to raise an exception, but it parses happily:
Replacing
true
with any string or non-integer value triggers aRawTypeError
as expected.The text was updated successfully, but these errors were encountered: