Skip to content

Commit 6b6db6b

Browse files
committed
Reorder the draft3 metaschema to match the upstream version.
Simplifies diffing with it. Refs: #641
1 parent d2bc412 commit 6b6db6b

File tree

1 file changed

+175
-197
lines changed

1 file changed

+175
-197
lines changed

jsonschema/schemas/draft3.json

Lines changed: 175 additions & 197 deletions
Original file line numberDiff line numberDiff line change
@@ -1,199 +1,177 @@
11
{
2-
"$schema": "http://json-schema.org/draft-03/schema#",
3-
"dependencies": {
4-
"exclusiveMaximum": "maximum",
5-
"exclusiveMinimum": "minimum"
6-
},
7-
"id": "http://json-schema.org/draft-03/schema#",
8-
"properties": {
9-
"$ref": {
10-
"format": "uri",
11-
"type": "string"
12-
},
13-
"$schema": {
14-
"format": "uri",
15-
"type": "string"
16-
},
17-
"additionalItems": {
18-
"default": {},
19-
"type": [
20-
{
21-
"$ref": "#"
22-
},
23-
"boolean"
24-
]
25-
},
26-
"additionalProperties": {
27-
"default": {},
28-
"type": [
29-
{
30-
"$ref": "#"
31-
},
32-
"boolean"
33-
]
34-
},
35-
"default": {
36-
"type": "any"
37-
},
38-
"dependencies": {
39-
"additionalProperties": {
40-
"items": {
41-
"type": "string"
42-
},
43-
"type": [
44-
"string",
45-
"array",
46-
{
47-
"$ref": "#"
48-
}
49-
]
50-
},
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
75-
},
76-
"divisibleBy": {
77-
"default": 1,
78-
"exclusiveMinimum": true,
79-
"minimum": 0,
80-
"type": "number"
81-
},
82-
"enum": {
83-
"type": "array"
84-
},
85-
"exclusiveMaximum": {
86-
"default": false,
87-
"type": "boolean"
88-
},
89-
"exclusiveMinimum": {
90-
"default": false,
91-
"type": "boolean"
92-
},
93-
"extends": {
94-
"default": {},
95-
"items": {
96-
"$ref": "#"
97-
},
98-
"type": [
99-
{
100-
"$ref": "#"
101-
},
102-
"array"
103-
]
104-
},
105-
"format": {
106-
"type": "string"
107-
},
108-
"id": {
109-
"format": "uri",
110-
"type": "string"
111-
},
112-
"items": {
113-
"default": {},
114-
"items": {
115-
"$ref": "#"
116-
},
117-
"type": [
118-
{
119-
"$ref": "#"
120-
},
121-
"array"
122-
]
123-
},
124-
"maxDecimal": {
125-
"minimum": 0,
126-
"type": "number"
127-
},
128-
"maxItems": {
129-
"minimum": 0,
130-
"type": "integer"
131-
},
132-
"maxLength": {
133-
"type": "integer"
134-
},
135-
"maximum": {
136-
"type": "number"
137-
},
138-
"minItems": {
139-
"default": 0,
140-
"minimum": 0,
141-
"type": "integer"
142-
},
143-
"minLength": {
144-
"default": 0,
145-
"minimum": 0,
146-
"type": "integer"
147-
},
148-
"minimum": {
149-
"type": "number"
150-
},
151-
"pattern": {
152-
"format": "regex",
153-
"type": "string"
154-
},
155-
"patternProperties": {
156-
"additionalProperties": {
157-
"$ref": "#"
158-
},
159-
"default": {},
160-
"type": "object"
161-
},
162-
"properties": {
163-
"additionalProperties": {
164-
"$ref": "#",
165-
"type": "object"
166-
},
167-
"default": {},
168-
"type": "object"
169-
},
170-
"required": {
171-
"default": false,
172-
"type": "boolean"
173-
},
174-
"title": {
175-
"type": "string"
176-
},
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
192-
},
193-
"uniqueItems": {
194-
"default": false,
195-
"type": "boolean"
196-
}
197-
},
198-
"type": "object"
2+
"$schema" : "http://json-schema.org/draft-03/schema#",
3+
"id" : "http://json-schema.org/draft-03/schema#",
4+
"type" : "object",
5+
6+
"properties" : {
7+
"type" : {
8+
"type" : ["string", "array"],
9+
"items" : {
10+
"type" : ["string", {"$ref" : "#"}]
11+
},
12+
"uniqueItems" : true,
13+
"default" : "any"
14+
},
15+
16+
"properties" : {
17+
"type" : "object",
18+
"additionalProperties" : {"$ref" : "#", "type" : "object"},
19+
"default" : {}
20+
},
21+
22+
"patternProperties" : {
23+
"type" : "object",
24+
"additionalProperties" : {"$ref" : "#"},
25+
"default" : {}
26+
},
27+
28+
"additionalProperties" : {
29+
"type" : [{"$ref" : "#"}, "boolean"],
30+
"default" : {}
31+
},
32+
33+
"items" : {
34+
"type" : [{"$ref" : "#"}, "array"],
35+
"items" : {"$ref" : "#"},
36+
"default" : {}
37+
},
38+
39+
"additionalItems" : {
40+
"type" : [{"$ref" : "#"}, "boolean"],
41+
"default" : {}
42+
},
43+
44+
"required" : {
45+
"type" : "boolean",
46+
"default" : false
47+
},
48+
49+
"dependencies" : {
50+
"type" : ["string", "array", "object"],
51+
"additionalProperties" : {
52+
"type" : ["string", "array", {"$ref" : "#"}],
53+
"items" : {
54+
"type" : "string"
55+
}
56+
},
57+
"default" : {}
58+
},
59+
60+
"minimum" : {
61+
"type" : "number"
62+
},
63+
64+
"maximum" : {
65+
"type" : "number"
66+
},
67+
68+
"exclusiveMinimum" : {
69+
"type" : "boolean",
70+
"default" : false
71+
},
72+
73+
"exclusiveMaximum" : {
74+
"type" : "boolean",
75+
"default" : false
76+
},
77+
78+
"maxDecimal": {
79+
"minimum": 0,
80+
"type": "number"
81+
},
82+
83+
"minItems" : {
84+
"type" : "integer",
85+
"minimum" : 0,
86+
"default" : 0
87+
},
88+
89+
"maxItems" : {
90+
"type" : "integer",
91+
"minimum" : 0
92+
},
93+
94+
"uniqueItems" : {
95+
"type" : "boolean",
96+
"default" : false
97+
},
98+
99+
"pattern" : {
100+
"type" : "string",
101+
"format" : "regex"
102+
},
103+
104+
"minLength" : {
105+
"type" : "integer",
106+
"minimum" : 0,
107+
"default" : 0
108+
},
109+
110+
"maxLength" : {
111+
"type" : "integer"
112+
},
113+
114+
"enum" : {
115+
"type" : "array"
116+
},
117+
118+
"default" : {
119+
"type" : "any"
120+
},
121+
122+
"title" : {
123+
"type" : "string"
124+
},
125+
126+
"description" : {
127+
"type" : "string"
128+
},
129+
130+
"format" : {
131+
"type" : "string"
132+
},
133+
134+
"divisibleBy" : {
135+
"type" : "number",
136+
"minimum" : 0,
137+
"exclusiveMinimum" : true,
138+
"default" : 1
139+
},
140+
141+
"disallow" : {
142+
"type" : ["string", "array"],
143+
"items" : {
144+
"type" : ["string", {"$ref" : "#"}]
145+
},
146+
"uniqueItems" : true
147+
},
148+
149+
"extends" : {
150+
"type" : [{"$ref" : "#"}, "array"],
151+
"items" : {"$ref" : "#"},
152+
"default" : {}
153+
},
154+
155+
"id" : {
156+
"type" : "string",
157+
"format" : "uri"
158+
},
159+
160+
"$ref" : {
161+
"type" : "string",
162+
"format" : "uri"
163+
},
164+
165+
"$schema" : {
166+
"type" : "string",
167+
"format" : "uri"
168+
}
169+
},
170+
171+
"dependencies" : {
172+
"exclusiveMinimum" : "minimum",
173+
"exclusiveMaximum" : "maximum"
174+
},
175+
176+
"default" : {}
199177
}

0 commit comments

Comments
 (0)