-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
Possible bug: wrong expectation of required object property #139
Comments
I'm unable to reproduce this, also on 2.2.5. With |
https://gist.github.com/nepalez/ac7d592b77577e62f367 I've used |
Ah; this is due to the confusing behavior of strict validation when mixed with the The error is raised from here: https://github.com/hoxworth/json-schema/blob/master/lib/json-schema/attributes/properties_v4.rb#L18-L21 Perhaps that could check |
Thanks! You are right. With But now I wonder if a strict validation is useful at all. Isn't it always safer to set |
Thanks a ton for taking this on @pd ! |
With a schema
.../firm.json
:And a json file:
I'm getting an error:
It seems validator requires
num
property, but it shouldn't.Used ruby MRI 2.1.2, json-schema 2.2.5
The text was updated successfully, but these errors were encountered: