|
2 | 2 | "$schema": "http://json-schema.org/draft-04/hyper-schema#",
|
3 | 3 | "id": "http://json-schema.org/draft-04/hyper-schema#",
|
4 | 4 | "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 | + }, |
5 | 51 | "allOf": [ { "$ref": "http://json-schema.org/draft-04/schema#" } ],
|
6 | 52 | "properties": {
|
7 | 53 | "additionalItems": {
|
|
74 | 120 | "type": "boolean",
|
75 | 121 | "default": "false"
|
76 | 122 | }
|
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 |
| - } |
123 | 123 | }
|
124 | 124 | }
|
125 | 125 |
|
0 commit comments