|
1 | 1 | { |
2 | | - "id": "http://json-schema.org/draft-06/schema#", |
3 | | - "$schema": "http://json-schema.org/draft-06/schema#", |
4 | | - "description": "Core schema meta-schema", |
| 2 | + "$schema": "http://json-schema.org/draft/schema#", |
| 3 | + "$id": "http://json-schema.org/draft/schema#", |
| 4 | + "title": "Core schema meta-schema", |
5 | 5 | "definitions": { |
6 | 6 | "schemaArray": { |
7 | 7 | "type": "array", |
|
13 | 13 | "minimum": 0 |
14 | 14 | }, |
15 | 15 | "positiveIntegerDefault0": { |
16 | | - "allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ] |
| 16 | + "allOf": [ |
| 17 | + { "$ref": "#/definitions/positiveInteger" }, |
| 18 | + { "default": 0 } |
| 19 | + ] |
17 | 20 | }, |
18 | 21 | "simpleTypes": { |
19 | | - "enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ] |
| 22 | + "enum": [ |
| 23 | + "array", |
| 24 | + "boolean", |
| 25 | + "integer", |
| 26 | + "null", |
| 27 | + "number", |
| 28 | + "object", |
| 29 | + "string" |
| 30 | + ] |
20 | 31 | }, |
21 | 32 | "stringArray": { |
22 | 33 | "type": "array", |
23 | 34 | "items": { "type": "string" }, |
24 | | - "minItems": 1, |
25 | | - "uniqueItems": true |
| 35 | + "uniqueItems": true, |
| 36 | + "defaultItems": [] |
26 | 37 | } |
27 | 38 | }, |
28 | | - "type": "object", |
| 39 | + "type": ["object", "boolean"], |
29 | 40 | "properties": { |
30 | | - "id": { |
| 41 | + "$id": { |
31 | 42 | "type": "string", |
32 | | - "format": "uri" |
| 43 | + "format": "uri-reference" |
33 | 44 | }, |
34 | 45 | "$schema": { |
35 | 46 | "type": "string", |
36 | 47 | "format": "uri" |
37 | 48 | }, |
| 49 | + "$ref": { |
| 50 | + "type": "string", |
| 51 | + "format": "uri-reference" |
| 52 | + }, |
38 | 53 | "title": { |
39 | 54 | "type": "string" |
40 | 55 | }, |
|
44 | 59 | "default": {}, |
45 | 60 | "multipleOf": { |
46 | 61 | "type": "number", |
47 | | - "minimum": 0, |
48 | | - "exclusiveMinimum": true |
| 62 | + "exclusiveMinimum": 0 |
49 | 63 | }, |
50 | 64 | "maximum": { |
51 | 65 | "type": "number" |
52 | 66 | }, |
53 | 67 | "exclusiveMaximum": { |
54 | | - "type": "boolean", |
55 | | - "default": false |
| 68 | + "type": "number" |
56 | 69 | }, |
57 | 70 | "minimum": { |
58 | 71 | "type": "number" |
59 | 72 | }, |
60 | 73 | "exclusiveMinimum": { |
61 | | - "type": "boolean", |
62 | | - "default": false |
| 74 | + "type": "number" |
63 | 75 | }, |
64 | 76 | "maxLength": { "$ref": "#/definitions/positiveInteger" }, |
65 | 77 | "minLength": { "$ref": "#/definitions/positiveIntegerDefault0" }, |
66 | 78 | "pattern": { |
67 | 79 | "type": "string", |
68 | 80 | "format": "regex" |
69 | 81 | }, |
70 | | - "additionalItems": { |
71 | | - "anyOf": [ |
72 | | - { "type": "boolean" }, |
73 | | - { "$ref": "#" } |
74 | | - ], |
75 | | - "default": {} |
76 | | - }, |
| 82 | + "additionalItems": { "$ref": "#" }, |
77 | 83 | "items": { |
78 | 84 | "anyOf": [ |
79 | 85 | { "$ref": "#" }, |
|
87 | 93 | "type": "boolean", |
88 | 94 | "default": false |
89 | 95 | }, |
| 96 | + "contains": { "$ref": "#" }, |
90 | 97 | "maxProperties": { "$ref": "#/definitions/positiveInteger" }, |
91 | 98 | "minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" }, |
92 | 99 | "required": { "$ref": "#/definitions/stringArray" }, |
93 | | - "additionalProperties": { |
94 | | - "anyOf": [ |
95 | | - { "type": "boolean" }, |
96 | | - { "$ref": "#" } |
97 | | - ], |
98 | | - "default": {} |
99 | | - }, |
| 100 | + "additionalProperties": { "$ref": "#" }, |
100 | 101 | "definitions": { |
101 | 102 | "type": "object", |
102 | 103 | "additionalProperties": { "$ref": "#" }, |
|
121 | 122 | ] |
122 | 123 | } |
123 | 124 | }, |
| 125 | + "propertyNames": { "$ref": "#" }, |
| 126 | + "const": {}, |
124 | 127 | "enum": { |
125 | 128 | "type": "array", |
126 | 129 | "minItems": 1, |
|
137 | 140 | } |
138 | 141 | ] |
139 | 142 | }, |
| 143 | + "format": { "type": "string" }, |
140 | 144 | "allOf": { "$ref": "#/definitions/schemaArray" }, |
141 | 145 | "anyOf": { "$ref": "#/definitions/schemaArray" }, |
142 | 146 | "oneOf": { "$ref": "#/definitions/schemaArray" }, |
143 | 147 | "not": { "$ref": "#" } |
144 | 148 | }, |
145 | | - "dependencies": { |
146 | | - "exclusiveMaximum": [ "maximum" ], |
147 | | - "exclusiveMinimum": [ "minimum" ] |
148 | | - }, |
149 | 149 | "default": {} |
150 | 150 | } |
0 commit comments