|
1 | 1 | [ |
2 | 2 | { |
3 | 3 | "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 | + }], |
5 | 9 | "schema": { |
6 | 10 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
7 | 11 | "type": "integer" |
|
56 | 60 | }, |
57 | 61 | { |
58 | 62 | "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 | + }], |
60 | 68 | "schema": { |
61 | 69 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
62 | 70 | "type": "number" |
|
111 | 119 | }, |
112 | 120 | { |
113 | 121 | "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 | + }], |
115 | 127 | "schema": { |
116 | 128 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
117 | 129 | "type": "string" |
|
166 | 178 | }, |
167 | 179 | { |
168 | 180 | "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 | + }], |
170 | 186 | "schema": { |
171 | 187 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
172 | 188 | "type": "object" |
|
211 | 227 | }, |
212 | 228 | { |
213 | 229 | "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 | + }], |
215 | 235 | "schema": { |
216 | 236 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
217 | 237 | "type": "array" |
|
256 | 276 | }, |
257 | 277 | { |
258 | 278 | "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 | + }], |
260 | 284 | "schema": { |
261 | 285 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
262 | 286 | "type": "boolean" |
|
316 | 340 | }, |
317 | 341 | { |
318 | 342 | "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 | + }], |
320 | 348 | "schema": { |
321 | 349 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
322 | 350 | "type": "null" |
|
376 | 404 | }, |
377 | 405 | { |
378 | 406 | "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 | + }], |
380 | 412 | "schema": { |
381 | 413 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
382 | 414 | "type": ["integer", "string"] |
|
421 | 453 | }, |
422 | 454 | { |
423 | 455 | "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 | + }], |
425 | 461 | "schema": { |
426 | 462 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
427 | 463 | "type": ["string"] |
|
441 | 477 | }, |
442 | 478 | { |
443 | 479 | "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 | + }], |
445 | 485 | "schema": { |
446 | 486 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
447 | 487 | "type": ["array", "object"] |
|
476 | 516 | }, |
477 | 517 | { |
478 | 518 | "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 | + }], |
480 | 524 | "schema": { |
481 | 525 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
482 | 526 | "type": ["array", "object", "null"] |
|
0 commit comments