Debian Codegraph @

t/additional-tests-draft2020-12/not.json

raw
1 [
2 {
3 "description": "'not' discards annotations",
4 "schema": {
5 "$schema": "https://json-schema.org/draft/2020-12/schema",
6 "not": {
7 "type": "object",
8 "properties": {
9 "foo": {}
10 },
11 "unevaluatedProperties": false
12 },
13 "unevaluatedProperties": false
14 },
15 "tests": [
16 {
17 "description": "object contains an unevaluated property",
18 "data": { "bar": 1 },
19 "valid": false
20 },
21 {
22 "description": "even when the property is evaluated, the overall schema fails",
23 "data": { "foo": 1 },
24 "valid": false
25 }
26 ]
27 }
28 ]