Skip to content

Commit da22f21

Browse files
draft-3: elements sorted (the same way as in official meta schema), patch kept
1 parent 66ee57a commit da22f21

File tree

1 file changed

+131
-154
lines changed

1 file changed

+131
-154
lines changed

jsonschema/schemas/draft3.json

Lines changed: 131 additions & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -1,199 +1,176 @@
11
{
22
"$schema": "http://json-schema.org/draft-03/schema#",
3-
"dependencies": {
4-
"exclusiveMaximum": "maximum",
5-
"exclusiveMinimum": "minimum"
6-
},
73
"id": "http://json-schema.org/draft-03/schema#",
4+
"type": "object",
5+
86
"properties": {
9-
"$ref": {
10-
"format": "uri",
11-
"type": "string"
7+
"type": {
8+
"type": ["string", "array"],
9+
"items": {
10+
"type": ["string", {"$ref": "#"}]
11+
},
12+
"uniqueItems": true,
13+
"default": "any"
1214
},
13-
"$schema": {
14-
"format": "uri",
15-
"type": "string"
15+
16+
"properties": {
17+
"type": "object",
18+
"additionalProperties": {"type": "object", "$ref": "#"},
19+
"default": {}
1620
},
17-
"additionalItems": {
18-
"default": {},
19-
"type": [
20-
{
21-
"$ref": "#"
22-
},
23-
"boolean"
24-
]
21+
22+
"patternProperties": {
23+
"type": "object",
24+
"additionalProperties": {"$ref": "#"},
25+
"default": {}
2526
},
27+
2628
"additionalProperties": {
27-
"default": {},
28-
"type": [
29-
{
30-
"$ref": "#"
31-
},
32-
"boolean"
33-
]
29+
"type": [{"$ref": "#"}, "boolean"],
30+
"default": {}
3431
},
35-
"default": {
36-
"type": "any"
32+
33+
"items": {
34+
"type": [{"$ref": "#"}, "array"],
35+
"items": {"$ref": "#"},
36+
"default": {}
37+
},
38+
39+
"additionalItems": {
40+
"type": [{"$ref": "#"}, "boolean"],
41+
"default": {}
3742
},
43+
44+
"required": {
45+
"type": "boolean",
46+
"default": false
47+
},
48+
3849
"dependencies": {
50+
"type": ["string", "array", "object"],
3951
"additionalProperties": {
52+
"type": ["string", "array", {"$ref": "#"}],
4053
"items": {
4154
"type": "string"
42-
},
43-
"type": [
44-
"string",
45-
"array",
46-
{
47-
"$ref": "#"
48-
}
49-
]
55+
}
5056
},
51-
"default": {},
52-
"type": [
53-
"string",
54-
"array",
55-
"object"
56-
]
57-
},
58-
"description": {
59-
"type": "string"
60-
},
61-
"disallow": {
62-
"items": {
63-
"type": [
64-
"string",
65-
{
66-
"$ref": "#"
67-
}
68-
]
69-
},
70-
"type": [
71-
"string",
72-
"array"
73-
],
74-
"uniqueItems": true
57+
"default": {}
7558
},
76-
"divisibleBy": {
77-
"default": 1,
78-
"exclusiveMinimum": true,
79-
"minimum": 0,
59+
60+
"minimum": {
8061
"type": "number"
8162
},
82-
"enum": {
83-
"type": "array"
84-
},
85-
"exclusiveMaximum": {
86-
"default": false,
87-
"type": "boolean"
63+
64+
"maximum": {
65+
"type": "number"
8866
},
67+
8968
"exclusiveMinimum": {
90-
"default": false,
91-
"type": "boolean"
69+
"type": "boolean",
70+
"default": false
9271
},
93-
"extends": {
94-
"default": {},
95-
"items": {
96-
"$ref": "#"
97-
},
98-
"type": [
99-
{
100-
"$ref": "#"
101-
},
102-
"array"
103-
]
72+
73+
"exclusiveMaximum": {
74+
"type": "boolean",
75+
"default": false
10476
},
105-
"format": {
106-
"type": "string"
77+
78+
"minItems": {
79+
"type": "integer",
80+
"minimum": 0,
81+
"default": 0
10782
},
108-
"id": {
109-
"format": "uri",
110-
"type": "string"
83+
84+
"maxItems": {
85+
"type": "integer",
86+
"minimum": 0
11187
},
112-
"items": {
113-
"default": {},
114-
"items": {
115-
"$ref": "#"
116-
},
117-
"type": [
118-
{
119-
"$ref": "#"
120-
},
121-
"array"
122-
]
88+
89+
"uniqueItems": {
90+
"type": "boolean",
91+
"default": false
12392
},
124-
"maxDecimal": {
125-
"minimum": 0,
126-
"type": "number"
93+
94+
"pattern": {
95+
"type": "string",
96+
"format": "regex"
12797
},
128-
"maxItems": {
98+
99+
"minLength": {
100+
"type": "integer",
129101
"minimum": 0,
130-
"type": "integer"
102+
"default": 0
131103
},
104+
132105
"maxLength": {
133106
"type": "integer"
134107
},
135-
"maximum": {
136-
"type": "number"
108+
109+
"enum": {
110+
"type": "array"
137111
},
138-
"minItems": {
139-
"default": 0,
140-
"minimum": 0,
141-
"type": "integer"
112+
113+
"default": {
114+
"type": "any"
142115
},
143-
"minLength": {
144-
"default": 0,
145-
"minimum": 0,
146-
"type": "integer"
116+
117+
"title": {
118+
"type": "string"
147119
},
148-
"minimum": {
149-
"type": "number"
120+
121+
"description": {
122+
"type": "string"
150123
},
151-
"pattern": {
152-
"format": "regex",
124+
125+
"format": {
153126
"type": "string"
154127
},
155-
"patternProperties": {
156-
"additionalProperties": {
157-
"$ref": "#"
158-
},
159-
"default": {},
160-
"type": "object"
128+
129+
"divisibleBy": {
130+
"type": "number",
131+
"minimum": 0,
132+
"exclusiveMinimum": true,
133+
"default": 1
161134
},
162-
"properties": {
163-
"additionalProperties": {
164-
"$ref": "#",
165-
"type": "object"
135+
136+
"disallow": {
137+
"type": ["string", "array"],
138+
"items": {
139+
"type": ["string", {"$ref": "#"}]
166140
},
167-
"default": {},
168-
"type": "object"
141+
"uniqueItems": true
169142
},
170-
"required": {
171-
"default": false,
172-
"type": "boolean"
143+
144+
"extends": {
145+
"type": [{"$ref": "#"}, "array"],
146+
"items": {"$ref": "#"},
147+
"default": {}
173148
},
174-
"title": {
175-
"type": "string"
149+
150+
"id": {
151+
"type": "string",
152+
"format": "uri"
176153
},
177-
"type": {
178-
"default": "any",
179-
"items": {
180-
"type": [
181-
"string",
182-
{
183-
"$ref": "#"
184-
}
185-
]
186-
},
187-
"type": [
188-
"string",
189-
"array"
190-
],
191-
"uniqueItems": true
154+
155+
"$ref": {
156+
"type": "string",
157+
"format": "uri"
192158
},
193-
"uniqueItems": {
194-
"default": false,
195-
"type": "boolean"
159+
160+
"maxDecimal": {
161+
"minimum": 0,
162+
"type": "number"
163+
},
164+
165+
"$schema": {
166+
"type": "string",
167+
"format": "uri"
196168
}
197169
},
198-
"type": "object"
199-
}
170+
171+
"dependencies": {
172+
"exclusiveMinimum": "minimum",
173+
"exclusiveMaximum": "maximum"
174+
}
175+
176+
}

0 commit comments

Comments
 (0)