Open krobi64 opened 9 years ago
There are some tests for not
in test/test_jsonschema_draft4.rb
and also test/test-suite/tests/draft4/not.json
, however, none test the combination of not
at the root level with maxItems
.
Your detailed examples are very helpful - if we can write some tests that reproduce them we stand a chance of fixing the error.
I ran into the following circumstance to try to define a json-schema for the following. You can see the full conversation here: https://groups.google.com/forum/#!topic/json-schema/w7nb2WA0n_w
Any of the following json objects are valid:
However the following are invalid:
The first proposed solution was:
This works on the following validation site: https://json-schema-validator.herokuapp.com/
However, this library allows the following object to incorrectly pass:
{ "id": 11 }
The website fails it correctly with:
I notice that there is not a test for the
not
keyword.