Skip to content

Commit 40e806a

Browse files
committed
Move the "definitions" area below the main schema part
This is for readability---the main schema description is now the first thing we read, details follow.
1 parent 48cec8f commit 40e806a

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

test-schema.json

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
{
22
"$schema": "http://json-schema.org/draft-04/schema#",
33
"description": "Schema for tests",
4+
"type": "array",
5+
"items": {
6+
"type": "object",
7+
"required": [ "description", "schema", "tests" ],
8+
"properties": {
9+
"id": {
10+
"description": "Uniquely identifies a set of tests",
11+
"type": "string",
12+
"format": "uri"
13+
},
14+
"description": { "type": "string" },
15+
"schema": {},
16+
"tests": {
17+
"description": "A set of related tests all using the same schema",
18+
"type": "array",
19+
"items": { "$ref": "#/definitions/test" },
20+
"minItems": 1
21+
}
22+
},
23+
"additionalProperties": false,
24+
"minItems": 1
25+
},
426
"definitions": {
527
"outputItem": {
628
"type": "object",
@@ -47,27 +69,5 @@
4769
},
4870
"additionalProperties": false
4971
}
50-
},
51-
"type": "array",
52-
"items": {
53-
"type": "object",
54-
"required": [ "description", "schema", "tests" ],
55-
"properties": {
56-
"id": {
57-
"description": "Uniquely identifies a set of tests",
58-
"type": "string",
59-
"format": "uri"
60-
},
61-
"description": { "type": "string" },
62-
"schema": {},
63-
"tests": {
64-
"description": "A set of related tests all using the same schema",
65-
"type": "array",
66-
"items": { "$ref": "#/definitions/test" },
67-
"minItems": 1
68-
}
69-
},
70-
"additionalProperties": false,
71-
"minItems": 1
7272
}
7373
}

0 commit comments

Comments
 (0)