Skip to content

Commit f927200

Browse files
Update type.json tests for draft 2020-12
1 parent d449fe9 commit f927200

1 file changed

Lines changed: 55 additions & 11 deletions

File tree

tests/draft2020-12/type.json

Lines changed: 55 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
[
22
{
33
"description": "integer type matches integers",
4-
"specification": ["validation"],
4+
"specification": [{
5+
"vocabulary": "validation",
6+
"section": "6.1",
7+
"url": "https://json-schema.org/draft/2020-12/json-schema-validation#type"
8+
}],
59
"schema": {
610
"$schema": "https://json-schema.org/draft/2020-12/schema",
711
"type": "integer"
@@ -56,7 +60,11 @@
5660
},
5761
{
5862
"description": "number type matches numbers",
59-
"specification": ["validation"],
63+
"specification": [{
64+
"vocabulary": "validation",
65+
"section": "6.1",
66+
"url": "https://json-schema.org/draft/2020-12/json-schema-validation#type"
67+
}],
6068
"schema": {
6169
"$schema": "https://json-schema.org/draft/2020-12/schema",
6270
"type": "number"
@@ -111,7 +119,11 @@
111119
},
112120
{
113121
"description": "string type matches strings",
114-
"specification": ["validation"],
122+
"specification": [{
123+
"vocabulary": "validation",
124+
"section": "6.1",
125+
"url": "https://json-schema.org/draft/2020-12/json-schema-validation#type"
126+
}],
115127
"schema": {
116128
"$schema": "https://json-schema.org/draft/2020-12/schema",
117129
"type": "string"
@@ -166,7 +178,11 @@
166178
},
167179
{
168180
"description": "object type matches objects",
169-
"specification": ["validation"],
181+
"specification": [{
182+
"vocabulary": "validation",
183+
"section": "6.1",
184+
"url": "https://json-schema.org/draft/2020-12/json-schema-validation#type"
185+
}],
170186
"schema": {
171187
"$schema": "https://json-schema.org/draft/2020-12/schema",
172188
"type": "object"
@@ -211,7 +227,11 @@
211227
},
212228
{
213229
"description": "array type matches arrays",
214-
"specification": ["validation"],
230+
"specification": [{
231+
"vocabulary": "validation",
232+
"section": "6.1",
233+
"url": "https://json-schema.org/draft/2020-12/json-schema-validation#type"
234+
}],
215235
"schema": {
216236
"$schema": "https://json-schema.org/draft/2020-12/schema",
217237
"type": "array"
@@ -256,7 +276,11 @@
256276
},
257277
{
258278
"description": "boolean type matches booleans",
259-
"specification": ["validation"],
279+
"specification": [{
280+
"vocabulary": "validation",
281+
"section": "6.1",
282+
"url": "https://json-schema.org/draft/2020-12/json-schema-validation#type"
283+
}],
260284
"schema": {
261285
"$schema": "https://json-schema.org/draft/2020-12/schema",
262286
"type": "boolean"
@@ -316,7 +340,11 @@
316340
},
317341
{
318342
"description": "null type matches only the null object",
319-
"specification": ["validation"],
343+
"specification": [{
344+
"vocabulary": "validation",
345+
"section": "6.1",
346+
"url": "https://json-schema.org/draft/2020-12/json-schema-validation#type"
347+
}],
320348
"schema": {
321349
"$schema": "https://json-schema.org/draft/2020-12/schema",
322350
"type": "null"
@@ -376,7 +404,11 @@
376404
},
377405
{
378406
"description": "multiple types can be specified in an array",
379-
"specification": ["validation"],
407+
"specification": [{
408+
"vocabulary": "validation",
409+
"section": "6.1",
410+
"url": "https://json-schema.org/draft/2020-12/json-schema-validation#type"
411+
}],
380412
"schema": {
381413
"$schema": "https://json-schema.org/draft/2020-12/schema",
382414
"type": ["integer", "string"]
@@ -421,7 +453,11 @@
421453
},
422454
{
423455
"description": "type as array with one item",
424-
"specification": ["validation"],
456+
"specification": [{
457+
"vocabulary": "validation",
458+
"section": "6.1",
459+
"url": "https://json-schema.org/draft/2020-12/json-schema-validation#type"
460+
}],
425461
"schema": {
426462
"$schema": "https://json-schema.org/draft/2020-12/schema",
427463
"type": ["string"]
@@ -441,7 +477,11 @@
441477
},
442478
{
443479
"description": "type: array or object",
444-
"specification": ["validation"],
480+
"specification": [{
481+
"vocabulary": "validation",
482+
"section": "6.1",
483+
"url": "https://json-schema.org/draft/2020-12/json-schema-validation#type"
484+
}],
445485
"schema": {
446486
"$schema": "https://json-schema.org/draft/2020-12/schema",
447487
"type": ["array", "object"]
@@ -476,7 +516,11 @@
476516
},
477517
{
478518
"description": "type: array, object or null",
479-
"specification": ["validation"],
519+
"specification": [{
520+
"vocabulary": "validation",
521+
"section": "6.1",
522+
"url": "https://json-schema.org/draft/2020-12/json-schema-validation#type"
523+
}],
480524
"schema": {
481525
"$schema": "https://json-schema.org/draft/2020-12/schema",
482526
"type": ["array", "object", "null"]

0 commit comments

Comments
 (0)