Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit 54749a2

Browse files
committed
Move definitions to the top in hyper-schema.
Another change to standardize the meta-schema formats, done separately because it messes up the diff otherwise.
1 parent fe6401b commit 54749a2

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

draft-05/hyper-schema

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-05/hyper-schema",
33
"id": "http://json-schema.org/draft-05/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", "rel" ],
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-05/schema"
@@ -70,40 +104,6 @@
70104
"type": "string",
71105
"format": "uri"
72106
}
73-
},
74-
"definitions": {
75-
"schemaArray": {
76-
"type": "array",
77-
"items": { "$ref": "#" }
78-
},
79-
"linkDescription": {
80-
"title": "Link Description Object",
81-
"type": "object",
82-
"required": [ "href", "rel" ],
83-
"properties": {
84-
"href": {
85-
"type": "string"
86-
},
87-
"rel": {
88-
"type": "string"
89-
},
90-
"title": {
91-
"type": "string"
92-
},
93-
"targetSchema": { "$ref": "#" },
94-
"mediaType": {
95-
"type": "string"
96-
},
97-
"method": {
98-
"type": "string"
99-
},
100-
"encType": {
101-
"type": "string",
102-
"default": "application/json"
103-
},
104-
"schema": { "$ref": "#" }
105-
}
106-
}
107107
}
108108
}
109109

0 commit comments

Comments
 (0)