-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Multi type: number/null type validation fails #147
Comments
driv3r
changed the title
Number/null type validation fails
Multi type: number/null type validation fails
Dec 8, 2020
Hi! Thanks for reporting, I'll take a look :) |
Yes, it is a bug; the upstream test suite (at least the version used by this lib) does not include such cases. I'll work on a fix |
@Stranger6667 this was fast! Kudos! |
@driv3r You're welcome! I will release the fix tomorrow :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I've encountered issue with validating numbers: example
Schema
Object for test
when having those files under
benches/number_*
and running cli, I getBut as far as I checked, this should be valid, at least by looking at https://github.com/Stranger6667/jsonschema-rs/blob/master/src/keywords/type_.rs#L54-L57 with my beginners rust knowledge.
Also when running against
"type":["number"]
everything looks as it's supposed to.The text was updated successfully, but these errors were encountered: