diff options
Diffstat (limited to 'json/tests/draft2019-09/unevaluatedItems.json')
-rw-r--r-- | json/tests/draft2019-09/unevaluatedItems.json | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/json/tests/draft2019-09/unevaluatedItems.json b/json/tests/draft2019-09/unevaluatedItems.json index fa7ad7c..55d33e2 100644 --- a/json/tests/draft2019-09/unevaluatedItems.json +++ b/json/tests/draft2019-09/unevaluatedItems.json @@ -1,7 +1,10 @@ [ { "description": "unevaluatedItems true", - "schema": { "unevaluatedItems": true }, + "schema": { + "$schema": "https://json-schema.org/draft/2019-09/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/2019-09/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/2019-09/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/2019-09/schema", "items": { "type": "string" }, "unevaluatedItems": false }, @@ -69,6 +79,7 @@ { "description": "unevaluatedItems with tuple", "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", "items": [ { "type": "string" } ], @@ -90,6 +101,7 @@ { "description": "unevaluatedItems with additionalItems", "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", "items": [ { "type": "string" } ], @@ -107,6 +119,7 @@ { "description": "unevaluatedItems with nested tuple", "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", "items": [ { "type": "string" } ], @@ -136,6 +149,7 @@ { "description": "unevaluatedItems with nested items", "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", "unevaluatedItems": {"type": "boolean"}, "anyOf": [ { "items": {"type": "string"} }, @@ -163,6 +177,7 @@ { "description": "unevaluatedItems with nested items and additionalItems", "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", "allOf": [ { "items": [ @@ -189,6 +204,7 @@ { "description": "unevaluatedItems with nested unevaluatedItems", "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", "allOf": [ { "items": [ @@ -215,6 +231,7 @@ { "description": "unevaluatedItems with anyOf", "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", "items": [ { "const": "foo" } ], @@ -261,6 +278,7 @@ { "description": "unevaluatedItems with oneOf", "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", "items": [ { "const": "foo" } ], @@ -296,6 +314,7 @@ { "description": "unevaluatedItems with not", "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", "items": [ { "const": "foo" } ], @@ -320,6 +339,7 @@ { "description": "unevaluatedItems with if/then/else", "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", "items": [ { "const": "foo" } ], "if": { "items": [ @@ -370,6 +390,7 @@ { "description": "unevaluatedItems with boolean schemas", "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", "allOf": [true], "unevaluatedItems": false }, @@ -389,6 +410,7 @@ { "description": "unevaluatedItems with $ref", "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", "$ref": "#/$defs/bar", "items": [ { "type": "string" } @@ -419,6 +441,7 @@ { "description": "unevaluatedItems can't see inside cousins", "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", "allOf": [ { "items": [ true ] @@ -437,6 +460,7 @@ { "description": "item is evaluated in an uncle schema to unevaluatedItems", "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", "properties": { "foo": { "items": [ @@ -482,7 +506,10 @@ }, { "description": "non-array instances are valid", - "schema": {"unevaluatedItems": false}, + "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", + "unevaluatedItems": false + }, "tests": [ { "description": "ignores booleans", @@ -519,6 +546,7 @@ { "description": "unevaluatedItems with null instance elements", "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", "unevaluatedItems": { "type": "null" } |