Skip to content

Commit de5c117

Browse files
committed
Meta-schema consistency: "definitions" at top.
Standardize on "definitions" first (like schema.json) rather than last (as hyper-schema.json had it).
1 parent b206aea commit de5c117

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

hyper-schema.json

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,40 @@
22
"$schema": "http://json-schema.org/draft/hyper-schema",
33
"id": "http://json-schema.org/draft/hyper-schema",
44
"title": "JSON Hyper-Schema",
5+
"definitions": {
6+
"schemaArray": {
7+
"type": "array",
8+
"items": { "$ref": "#" }
9+
},
10+
"linkDescription": {
11+
"title": "Link Description Object",
12+
"type": "object",
13+
"required": [ "href" ],
14+
"properties": {
15+
"href": {
16+
"type": "string"
17+
},
18+
"rel": {
19+
"type": "string"
20+
},
21+
"title": {
22+
"type": "string"
23+
},
24+
"targetSchema": { "$ref": "#" },
25+
"mediaType": {
26+
"type": "string"
27+
},
28+
"method": {
29+
"type": "string"
30+
},
31+
"encType": {
32+
"type": "string",
33+
"default": "application/json"
34+
},
35+
"schema": { "$ref": "#" }
36+
}
37+
}
38+
},
539
"allOf": [
640
{
741
"$ref": "http://json-schema.org/draft/schema"
@@ -67,40 +101,6 @@
67101
}
68102
}
69103
},
70-
"definitions": {
71-
"schemaArray": {
72-
"type": "array",
73-
"items": { "$ref": "#" }
74-
},
75-
"linkDescription": {
76-
"title": "Link Description Object",
77-
"type": "object",
78-
"required": [ "href" ],
79-
"properties": {
80-
"href": {
81-
"type": "string"
82-
},
83-
"rel": {
84-
"type": "string"
85-
},
86-
"title": {
87-
"type": "string"
88-
},
89-
"targetSchema": { "$ref": "#" },
90-
"mediaType": {
91-
"type": "string"
92-
},
93-
"method": {
94-
"type": "string"
95-
},
96-
"encType": {
97-
"type": "string",
98-
"default": "application/json"
99-
},
100-
"schema": { "$ref": "#" }
101-
}
102-
}
103-
},
104104
"links": [
105105
{
106106
"rel": "self",

0 commit comments

Comments
 (0)