Skip to content

Commit 1a860cf

Browse files
committed
added $id to all output schemas; reindexed test cases to 0 (instead of 1)
1 parent 930e87e commit 1a860cf

File tree

9 files changed

+34
-23
lines changed

9 files changed

+34
-23
lines changed

output-tests/draft-next/content/general.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "failed validation produces no annotations",
44
"schema": {
55
"$schema": "https://json-schema.org/draft/next/schema",
6-
"$id": "https://json-schema.org/tests/content/draft-next/general/1",
6+
"$id": "https://json-schema.org/tests/content/draft-next/general/0",
77
"type": "string",
88
"readOnly": true
99
},
@@ -12,14 +12,15 @@
1212
"description": "dropped annotations MAY appear in droppedAnnotations",
1313
"data": 1,
1414
"output": {
15-
"basic": {
15+
"list": {
16+
"$id": "https://json-schema.org/tests/content/draft-next/general/0/tests/0/basic",
1617
"$ref": "/draft/next/output/schema",
1718
"properties": {
1819
"details": {
1920
"contains": {
2021
"properties": {
2122
"evaluationPath": {"const": ""},
22-
"schemaLocation": {"const": "https://json-schema.org/tests/content/draft-next/general/1"},
23+
"schemaLocation": {"const": "https://json-schema.org/tests/content/draft-next/general/0"},
2324
"instanceLocation": {"const": ""},
2425
"annotations": false,
2526
"droppedAnnotations": {

output-tests/draft-next/content/readOnly.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,23 @@
33
"description": "readOnly generates its value as an annotation",
44
"schema": {
55
"$schema": "https://json-schema.org/draft/next/schema",
6-
"$id": "https://json-schema.org/tests/content/draft-next/readOnly/1",
6+
"$id": "https://json-schema.org/tests/content/draft-next/readOnly/0",
77
"readOnly": true
88
},
99
"tests": [
1010
{
1111
"description": "readOnly is true",
1212
"data": 1,
1313
"output": {
14-
"basic": {
14+
"list": {
15+
"$id": "https://json-schema.org/tests/content/draft-next/readOnly/0/tests/0/basic",
1516
"$ref": "/draft/next/output/schema",
1617
"properties": {
1718
"details": {
1819
"contains": {
1920
"properties": {
2021
"evaluationPath": {"const": ""},
21-
"schemaLocation": {"const": "https://json-schema.org/tests/content/draft-next/readOnly/1"},
22+
"schemaLocation": {"const": "https://json-schema.org/tests/content/draft-next/readOnly/0"},
2223
"instanceLocation": {"const": ""},
2324
"annotations": {
2425
"properties": {

output-tests/draft-next/content/type.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,23 @@
33
"description": "incorrect type",
44
"schema": {
55
"$schema": "https://json-schema.org/draft/next/schema",
6-
"$id": "https://json-schema.org/tests/content/draft-next/type/1",
6+
"$id": "https://json-schema.org/tests/content/draft-next/type/0",
77
"type": "string"
88
},
99
"tests": [
1010
{
1111
"description": "incorrect type must be reported, but a message is not required",
1212
"data": 1,
1313
"output": {
14-
"basic": {
14+
"list": {
15+
"$id": "https://json-schema.org/tests/content/draft-next/type/0/tests/0/basic",
1516
"$ref": "/draft/next/output/schema",
1617
"properties": {
1718
"details": {
1819
"contains": {
1920
"properties": {
2021
"evaluationPath": {"const": ""},
21-
"schemaLocation": {"const": "https://json-schema.org/tests/content/draft-next/type/1"},
22+
"schemaLocation": {"const": "https://json-schema.org/tests/content/draft-next/type/0"},
2223
"instanceLocation": {"const": ""},
2324
"annotations": false,
2425
"errors": {

output-tests/draft2019-09/content/general.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "failed validation produces no annotations",
44
"schema": {
55
"$schema": "https://json-schema.org/draft/2019-09/schema",
6-
"$id": "https://json-schema.org/tests/content/draft2019-09/general/1",
6+
"$id": "https://json-schema.org/tests/content/draft2019-09/general/0",
77
"type": "string",
88
"readOnly": true
99
},
@@ -13,6 +13,7 @@
1313
"data": 1,
1414
"output": {
1515
"basic": {
16+
"$id": "https://json-schema.org/tests/content/draft2019-09/general/0/tests/0/basic",
1617
"$ref": "/draft/2019-09/output/schema",
1718
"properties": {
1819
"errors": {

output-tests/draft2019-09/content/readOnly.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "readOnly generates its value as an annotation",
44
"schema": {
55
"$schema": "https://json-schema.org/draft/2019-09/schema",
6-
"$id": "https://json-schema.org/tests/content/draft2019-09/readOnly/1",
6+
"$id": "https://json-schema.org/tests/content/draft2019-09/readOnly/0",
77
"readOnly": true
88
},
99
"tests": [
@@ -12,14 +12,15 @@
1212
"data": 1,
1313
"output": {
1414
"basic": {
15+
"$id": "https://json-schema.org/tests/content/draft2019-09/readOnly/0/tests/0/basic",
1516
"$ref": "/draft/2019-09/output/schema",
1617
"properties": {
1718
"annotations": {
1819
"contains": {
1920
"type": "object",
2021
"properties": {
2122
"keywordLocation": {"const": "/readOnly"},
22-
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2019-09/readOnly/1#/readOnly"},
23+
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2019-09/readOnly/0#/readOnly"},
2324
"instanceLocation": {"const": ""},
2425
"annotation": {"const": true}
2526
},

output-tests/draft2019-09/content/type.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "validating type",
44
"schema": {
55
"$schema": "https://json-schema.org/draft/2019-09/schema",
6-
"$id": "https://json-schema.org/tests/content/draft2019-09/type/1",
6+
"$id": "https://json-schema.org/tests/content/draft2019-09/type/0",
77
"type": "string"
88
},
99
"tests": [
@@ -12,13 +12,14 @@
1212
"data": 1,
1313
"output": {
1414
"basic": {
15+
"$id": "https://json-schema.org/tests/content/draft2019-09/type/0/tests/0/basic",
1516
"$ref": "/draft/2019-09/output/schema",
1617
"properties": {
1718
"errors": {
1819
"contains": {
1920
"properties": {
2021
"keywordLocation": {"const": "/type"},
21-
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2019-09/type/1#/type"},
22+
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2019-09/type/0#/type"},
2223
"instanceLocation": {"const": ""},
2324
"annotation": false
2425
},
@@ -32,17 +33,18 @@
3233
},
3334
{
3435
"description": "correct type yields an output unit",
35-
"data": 1,
36+
"data": "a string",
3637
"output": {
3738
"basic": {
39+
"$id": "https://json-schema.org/tests/content/draft2019-09/type/0/tests/1/basic",
3840
"$ref": "/draft/2019-09/output/schema",
3941
"properties": {
4042
"annotations": {
4143
"contains": {
4244
"properties": {
4345
"valid": {"const": true},
4446
"keywordLocation": {"const": "/type"},
45-
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2019-09/type/1#/type"},
47+
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2019-09/type/0#/type"},
4648
"instanceLocation": {"const": ""},
4749
"annotation": false,
4850
"error": false

output-tests/draft2020-12/content/general.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "failed validation produces no annotations",
44
"schema": {
55
"$schema": "https://json-schema.org/draft/2020-12/schema",
6-
"$id": "https://json-schema.org/tests/content/draft2020-12/general/1",
6+
"$id": "https://json-schema.org/tests/content/draft2020-12/general/0",
77
"type": "string",
88
"readOnly": true
99
},
@@ -13,6 +13,7 @@
1313
"data": 1,
1414
"output": {
1515
"basic": {
16+
"$id": "https://json-schema.org/tests/content/draft2020-12/general/0/tests/0/basic",
1617
"$ref": "/draft/2020-12/output/schema",
1718
"properties": {
1819
"errors": {

output-tests/draft2020-12/content/readOnly.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "readOnly generates its value as an annotation",
44
"schema": {
55
"$schema": "https://json-schema.org/draft/2020-12/schema",
6-
"$id": "https://json-schema.org/tests/content/draft2020-12/readOnly/1",
6+
"$id": "https://json-schema.org/tests/content/draft2020-12/readOnly/0",
77
"readOnly": true
88
},
99
"tests": [
@@ -12,13 +12,14 @@
1212
"data": 1,
1313
"output": {
1414
"basic": {
15+
"$id": "https://json-schema.org/tests/content/draft2020-12/readOnly/0/tests/0/basic",
1516
"$ref": "/draft/2020-12/output/schema",
1617
"properties": {
1718
"annotations": {
1819
"contains": {
1920
"properties": {
2021
"keywordLocation": {"const": "/readOnly"},
21-
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2020-12/readOnly/1#/readOnly"},
22+
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2020-12/readOnly/0#/readOnly"},
2223
"instanceLocation": {"const": ""},
2324
"annotation": {"const": true}
2425
},

output-tests/draft2020-12/content/type.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "validating type",
44
"schema": {
55
"$schema": "https://json-schema.org/draft/2020-12/schema",
6-
"$id": "https://json-schema.org/tests/content/draft2020-12/type/1",
6+
"$id": "https://json-schema.org/tests/content/draft2020-12/type/0",
77
"type": "string"
88
},
99
"tests": [
@@ -12,13 +12,14 @@
1212
"data": 1,
1313
"output": {
1414
"basic": {
15+
"$id": "https://json-schema.org/tests/content/draft2020-12/type/0/tests/0/basic",
1516
"$ref": "/draft/2020-12/output/schema",
1617
"properties": {
1718
"errors": {
1819
"contains": {
1920
"properties": {
2021
"keywordLocation": {"const": "/type"},
21-
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2020-12/type/1#/type"},
22+
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2020-12/type/0#/type"},
2223
"instanceLocation": {"const": ""},
2324
"annotation": false
2425
},
@@ -32,17 +33,18 @@
3233
},
3334
{
3435
"description": "correct type yields an output unit",
35-
"data": 1,
36+
"data": "a string",
3637
"output": {
3738
"basic": {
39+
"$id": "https://json-schema.org/tests/content/draft2020-12/type/0/tests/1/basic",
3840
"$ref": "/draft/2020-12/output/schema",
3941
"properties": {
4042
"annotations": {
4143
"contains": {
4244
"properties": {
4345
"valid": {"const": true},
4446
"keywordLocation": {"const": "/type"},
45-
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2020-12/type/1#/type"},
47+
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2020-12/type/0#/type"},
4648
"instanceLocation": {"const": ""},
4749
"annotation": false,
4850
"error": false

0 commit comments

Comments
 (0)