summaryrefslogtreecommitdiff
path: root/json/tests/draft2020-12/items.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft2020-12/items.json')
-rw-r--r--json/tests/draft2020-12/items.json17
1 files changed, 15 insertions, 2 deletions
diff --git a/json/tests/draft2020-12/items.json b/json/tests/draft2020-12/items.json
index 38ab0e0..1ef18bd 100644
--- a/json/tests/draft2020-12/items.json
+++ b/json/tests/draft2020-12/items.json
@@ -2,6 +2,7 @@
{
"description": "a schema given for items",
"schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
"items": {"type": "integer"}
},
"tests": [
@@ -32,7 +33,10 @@
},
{
"description": "items with boolean schema (true)",
- "schema": {"items": true},
+ "schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "items": true
+ },
"tests": [
{
"description": "any array is valid",
@@ -48,7 +52,10 @@
},
{
"description": "items with boolean schema (false)",
- "schema": {"items": false},
+ "schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "items": false
+ },
"tests": [
{
"description": "any non-empty array is invalid",
@@ -65,6 +72,7 @@
{
"description": "items and subitems",
"schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"item": {
"type": "array",
@@ -147,6 +155,7 @@
{
"description": "nested items",
"schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "array",
"items": {
"type": "array",
@@ -182,6 +191,7 @@
{
"description": "prefixItems with no additional items allowed",
"schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [{}, {}, {}],
"items": false
},
@@ -216,6 +226,7 @@
{
"description": "items does not look in applicators, valid case",
"schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
"allOf": [
{ "prefixItems": [ { "minimum": 3 } ] }
],
@@ -237,6 +248,7 @@
{
"description": "prefixItems validation adjusts the starting index for items",
"schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [ { "type": "string" } ],
"items": { "type": "integer" }
},
@@ -256,6 +268,7 @@
{
"description": "items with null instance elements",
"schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
"items": {
"type": "null"
}