diff options
Diffstat (limited to 'json/tests/draft2020-12/unevaluatedItems.json')
-rw-r--r-- | json/tests/draft2020-12/unevaluatedItems.json | 39 |
1 files changed, 35 insertions, 4 deletions
diff --git a/json/tests/draft2020-12/unevaluatedItems.json b/json/tests/draft2020-12/unevaluatedItems.json index 14c8d95..4e9dc72 100644 --- a/json/tests/draft2020-12/unevaluatedItems.json +++ b/json/tests/draft2020-12/unevaluatedItems.json @@ -1,7 +1,10 @@ [ { "description": "unevaluatedItems true", - "schema": { "unevaluatedItems": true }, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "unevaluatedItems": true + }, "tests": [ { "description": "with no unevaluated items", @@ -17,7 +20,10 @@ }, { "description": "unevaluatedItems false", - "schema": { "unevaluatedItems": false }, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "unevaluatedItems": false + }, "tests": [ { "description": "with no unevaluated items", @@ -33,7 +39,10 @@ }, { "description": "unevaluatedItems as schema", - "schema": { "unevaluatedItems": { "type": "string" } }, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "unevaluatedItems": { "type": "string" } + }, "tests": [ { "description": "with no unevaluated items", @@ -55,6 +64,7 @@ { "description": "unevaluatedItems with uniform items", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "items": { "type": "string" }, "unevaluatedItems": false }, @@ -69,6 +79,7 @@ { "description": "unevaluatedItems with tuple", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "prefixItems": [ { "type": "string" } ], @@ -90,6 +101,7 @@ { "description": "unevaluatedItems with items", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "prefixItems": [ { "type": "string" } ], @@ -107,6 +119,7 @@ { "description": "unevaluatedItems with nested tuple", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "prefixItems": [ { "type": "string" } ], @@ -136,6 +149,7 @@ { "description": "unevaluatedItems with nested items", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "unevaluatedItems": {"type": "boolean"}, "anyOf": [ { "items": {"type": "string"} }, @@ -163,6 +177,7 @@ { "description": "unevaluatedItems with nested prefixItems and items", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "prefixItems": [ @@ -189,6 +204,7 @@ { "description": "unevaluatedItems with nested unevaluatedItems", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "prefixItems": [ @@ -215,6 +231,7 @@ { "description": "unevaluatedItems with anyOf", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "prefixItems": [ { "const": "foo" } ], @@ -261,6 +278,7 @@ { "description": "unevaluatedItems with oneOf", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "prefixItems": [ { "const": "foo" } ], @@ -296,6 +314,7 @@ { "description": "unevaluatedItems with not", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "prefixItems": [ { "const": "foo" } ], @@ -320,6 +339,7 @@ { "description": "unevaluatedItems with if/then/else", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "prefixItems": [ { "const": "foo" } ], @@ -372,6 +392,7 @@ { "description": "unevaluatedItems with boolean schemas", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [true], "unevaluatedItems": false }, @@ -391,6 +412,7 @@ { "description": "unevaluatedItems with $ref", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "$ref": "#/$defs/bar", "prefixItems": [ { "type": "string" } @@ -421,6 +443,7 @@ { "description": "unevaluatedItems can't see inside cousins", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "prefixItems": [ true ] @@ -439,6 +462,7 @@ { "description": "item is evaluated in an uncle schema to unevaluatedItems", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "foo": { "prefixItems": [ @@ -485,6 +509,7 @@ { "description": "unevaluatedItems depends on adjacent contains", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "prefixItems": [true], "contains": {"type": "string"}, "unevaluatedItems": false @@ -510,6 +535,7 @@ { "description": "unevaluatedItems depends on multiple nested contains", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "contains": { "multipleOf": 2 } }, { "contains": { "multipleOf": 3 } } @@ -532,6 +558,7 @@ { "description": "unevaluatedItems and contains interact to control item dependency relationship", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "if": { "contains": {"const": "a"} }, @@ -592,7 +619,10 @@ }, { "description": "non-array instances are valid", - "schema": {"unevaluatedItems": false}, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "unevaluatedItems": false + }, "tests": [ { "description": "ignores booleans", @@ -629,6 +659,7 @@ { "description": "unevaluatedItems with null instance elements", "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", "unevaluatedItems": { "type": "null" } |