Skip to content

Commit efeee1d

Browse files
committed
update tests to reference output schemas
1 parent 147df48 commit efeee1d

File tree

9 files changed

+14
-31
lines changed

9 files changed

+14
-31
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
"data": 1,
1414
"output": {
1515
"basic": {
16-
"type": "object",
16+
"$ref": "/draft/next/output/schema",
1717
"properties": {
1818
"details": {
1919
"contains": {
20-
"type": "object",
2120
"properties": {
2221
"evaluationPath": {"const": ""},
2322
"schemaLocation": {"const": "https://json-schema.org/tests/content/draft-next/general/1"},

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@
1212
"data": 1,
1313
"output": {
1414
"basic": {
15-
"type": "object",
15+
"$ref": "/draft/next/output/schema",
1616
"properties": {
1717
"details": {
1818
"contains": {
19-
"type": "object",
2019
"properties": {
2120
"evaluationPath": {"const": ""},
2221
"schemaLocation": {"const": "https://json-schema.org/tests/content/draft-next/readOnly/1"},

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,20 @@
88
},
99
"tests": [
1010
{
11-
"description": "incorrect type may be reported",
11+
"description": "incorrect type must be reported, but a message is not required",
1212
"data": 1,
1313
"output": {
1414
"basic": {
15-
"type": "object",
15+
"$ref": "/draft/next/output/schema",
1616
"properties": {
1717
"details": {
1818
"contains": {
19-
"type": "object",
2019
"properties": {
2120
"evaluationPath": {"const": ""},
2221
"schemaLocation": {"const": "https://json-schema.org/tests/content/draft-next/type/1"},
2322
"instanceLocation": {"const": ""},
2423
"annotations": false,
2524
"errors": {
26-
"properties": {
27-
"type": {"type": "string"}
28-
},
2925
"required": ["type"]
3026
}
3127
},

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
"data": 1,
1414
"output": {
1515
"basic": {
16-
"type": "object",
16+
"$ref": "/draft/2019-09/output/schema",
1717
"properties": {
1818
"errors": {
19-
"type": "array",
2019
"items": {
2120
"properties": {
2221
"annotation": false

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
"data": 1,
1313
"output": {
1414
"basic": {
15-
"type": "object",
15+
"$ref": "/draft/2019-09/output/schema",
1616
"properties": {
1717
"annotations": {
18-
"type": "array",
1918
"contains": {
2019
"type": "object",
2120
"properties": {

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,15 @@
1212
"data": 1,
1313
"output": {
1414
"basic": {
15-
"type": "object",
15+
"$ref": "/draft/2019-09/output/schema",
1616
"properties": {
1717
"errors": {
1818
"contains": {
19-
"type": "object",
2019
"properties": {
2120
"keywordLocation": {"const": "/type"},
2221
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2019-09/type/1#/type"},
2322
"instanceLocation": {"const": ""},
24-
"annotation": false,
25-
"error": {"type": "string"}
23+
"annotation": false
2624
},
2725
"required": ["keywordLocation", "absoluteKeywordLocation", "instanceLocation"]
2826
}
@@ -37,11 +35,10 @@
3735
"data": 1,
3836
"output": {
3937
"basic": {
40-
"type": "object",
38+
"$ref": "/draft/2019-09/output/schema",
4139
"properties": {
4240
"annotations": {
4341
"contains": {
44-
"type": "object",
4542
"properties": {
4643
"valid": {"const": true},
4744
"keywordLocation": {"const": "/type"},

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
"data": 1,
1414
"output": {
1515
"basic": {
16-
"type": "object",
16+
"$ref": "/draft/2020-12/output/schema",
1717
"properties": {
1818
"errors": {
19-
"type": "array",
2019
"items": {
2120
"properties": {
2221
"annotation": false

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@
1212
"data": 1,
1313
"output": {
1414
"basic": {
15-
"type": "object",
15+
"$ref": "/draft/2020-12/output/schema",
1616
"properties": {
1717
"annotations": {
18-
"type": "array",
1918
"contains": {
20-
"type": "object",
2119
"properties": {
2220
"keywordLocation": {"const": "/readOnly"},
2321
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2020-12/readOnly/1#/readOnly"},

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,15 @@
1212
"data": 1,
1313
"output": {
1414
"basic": {
15-
"type": "object",
15+
"$ref": "/draft/2020-12/output/schema",
1616
"properties": {
1717
"errors": {
1818
"contains": {
19-
"type": "object",
2019
"properties": {
2120
"keywordLocation": {"const": "/type"},
2221
"absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2020-12/type/1#/type"},
2322
"instanceLocation": {"const": ""},
24-
"annotation": false,
25-
"error": {"type": "string"}
23+
"annotation": false
2624
},
2725
"required": ["keywordLocation", "absoluteKeywordLocation", "instanceLocation"]
2826
}
@@ -37,11 +35,10 @@
3735
"data": 1,
3836
"output": {
3937
"basic": {
40-
"type": "object",
38+
"$ref": "/draft/2020-12/output/schema",
4139
"properties": {
4240
"annotations": {
4341
"contains": {
44-
"type": "object",
4542
"properties": {
4643
"valid": {"const": true},
4744
"keywordLocation": {"const": "/type"},

0 commit comments

Comments
 (0)