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

Commit 6aac006

Browse files
committed
Move "definitions" to the top.
This makes the placement of "definitions" consistent across the meta-schemas.
1 parent 0013e48 commit 6aac006

File tree

1 file changed

+46
-46
lines changed

1 file changed

+46
-46
lines changed

draft-05/hyper-schema

+46-46
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,52 @@
22
"$schema": "http://json-schema.org/draft-04/hyper-schema#",
33
"id": "http://json-schema.org/draft-04/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+
"description": "a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing",
17+
"type": "string"
18+
},
19+
"rel": {
20+
"description": "relation to the target resource of the link",
21+
"type": "string"
22+
},
23+
"title": {
24+
"description": "a title for the link",
25+
"type": "string"
26+
},
27+
"targetSchema": {
28+
"description": "JSON Schema describing the link target",
29+
"allOf": [ { "$ref": "#" } ]
30+
},
31+
"mediaType": {
32+
"description": "media type (as defined by RFC 2046) describing the link target",
33+
"type": "string"
34+
},
35+
"method": {
36+
"description": "method for requesting the target of the link (e.g. for HTTP this might be \"GET\" or \"DELETE\")",
37+
"type": "string"
38+
},
39+
"encType": {
40+
"description": "The media type in which to submit data along with the request",
41+
"type": "string",
42+
"default": "application/json"
43+
},
44+
"schema": {
45+
"description": "Schema describing the data to submit along with the request",
46+
"allOf": [ { "$ref": "#" } ]
47+
}
48+
}
49+
}
50+
},
551
"allOf": [ { "$ref": "http://json-schema.org/draft-04/schema#" } ],
652
"properties": {
753
"additionalItems": {
@@ -74,52 +120,6 @@
74120
"type": "boolean",
75121
"default": "false"
76122
}
77-
},
78-
"definitions": {
79-
"schemaArray": {
80-
"type": "array",
81-
"items": { "$ref": "#" }
82-
},
83-
"linkDescription": {
84-
"title": "Link Description Object",
85-
"type": "object",
86-
"required": [ "href", "rel" ],
87-
"properties": {
88-
"href": {
89-
"description": "a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing",
90-
"type": "string"
91-
},
92-
"rel": {
93-
"description": "relation to the target resource of the link",
94-
"type": "string"
95-
},
96-
"title": {
97-
"description": "a title for the link",
98-
"type": "string"
99-
},
100-
"targetSchema": {
101-
"description": "JSON Schema describing the link target",
102-
"allOf": [ { "$ref": "#" } ]
103-
},
104-
"mediaType": {
105-
"description": "media type (as defined by RFC 2046) describing the link target",
106-
"type": "string"
107-
},
108-
"method": {
109-
"description": "method for requesting the target of the link (e.g. for HTTP this might be \"GET\" or \"DELETE\")",
110-
"type": "string"
111-
},
112-
"encType": {
113-
"description": "The media type in which to submit data along with the request",
114-
"type": "string",
115-
"default": "application/json"
116-
},
117-
"schema": {
118-
"description": "Schema describing the data to submit along with the request",
119-
"allOf": [ { "$ref": "#" } ]
120-
}
121-
}
122-
}
123123
}
124124
}
125125

0 commit comments

Comments
 (0)