Skip to content

Commit 6d699e7

Browse files
Add specification property to draft2020-12 type tests (fixes #699)
1 parent d69537a commit 6d699e7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/draft2020-12/type.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[
22
{
33
"description": "integer type matches integers",
4+
"specification": [{"validation": "6.1.1"}],
45
"schema": {
56
"$schema": "https://json-schema.org/draft/2020-12/schema",
67
"type": "integer"
@@ -55,6 +56,7 @@
5556
},
5657
{
5758
"description": "number type matches numbers",
59+
"specification": [{"validation": "6.1.1"}],
5860
"schema": {
5961
"$schema": "https://json-schema.org/draft/2020-12/schema",
6062
"type": "number"
@@ -109,6 +111,7 @@
109111
},
110112
{
111113
"description": "string type matches strings",
114+
"specification": [{"validation": "6.1.1"}],
112115
"schema": {
113116
"$schema": "https://json-schema.org/draft/2020-12/schema",
114117
"type": "string"
@@ -163,6 +166,7 @@
163166
},
164167
{
165168
"description": "object type matches objects",
169+
"specification": [{"validation": "6.1.1"}],
166170
"schema": {
167171
"$schema": "https://json-schema.org/draft/2020-12/schema",
168172
"type": "object"
@@ -207,6 +211,7 @@
207211
},
208212
{
209213
"description": "array type matches arrays",
214+
"specification": [{"validation": "6.1.1"}],
210215
"schema": {
211216
"$schema": "https://json-schema.org/draft/2020-12/schema",
212217
"type": "array"
@@ -251,6 +256,7 @@
251256
},
252257
{
253258
"description": "boolean type matches booleans",
259+
"specification": [{"validation": "6.1.1"}],
254260
"schema": {
255261
"$schema": "https://json-schema.org/draft/2020-12/schema",
256262
"type": "boolean"
@@ -310,6 +316,7 @@
310316
},
311317
{
312318
"description": "null type matches only the null object",
319+
"specification": [{"validation": "6.1.1"}],
313320
"schema": {
314321
"$schema": "https://json-schema.org/draft/2020-12/schema",
315322
"type": "null"
@@ -369,6 +376,7 @@
369376
},
370377
{
371378
"description": "multiple types can be specified in an array",
379+
"specification": [{"validation": "6.1.1"}],
372380
"schema": {
373381
"$schema": "https://json-schema.org/draft/2020-12/schema",
374382
"type": ["integer", "string"]
@@ -413,6 +421,7 @@
413421
},
414422
{
415423
"description": "type as array with one item",
424+
"specification": [{"validation": "6.1.1"}],
416425
"schema": {
417426
"$schema": "https://json-schema.org/draft/2020-12/schema",
418427
"type": ["string"]
@@ -432,6 +441,7 @@
432441
},
433442
{
434443
"description": "type: array or object",
444+
"specification": [{"validation": "6.1.1"}],
435445
"schema": {
436446
"$schema": "https://json-schema.org/draft/2020-12/schema",
437447
"type": ["array", "object"]
@@ -466,6 +476,7 @@
466476
},
467477
{
468478
"description": "type: array, object or null",
479+
"specification": [{"validation": "6.1.1"}],
469480
"schema": {
470481
"$schema": "https://json-schema.org/draft/2020-12/schema",
471482
"type": ["array", "object", "null"]

0 commit comments

Comments
 (0)