|
1 | 1 | {
|
2 |
| - "$schema": "http://json-schema.org/draft-04/hyper-schema#", |
3 |
| - "id": "http://json-schema.org/draft-04/hyper-schema#", |
| 2 | + "$schema": "http://json-schema.org/draft-05/hyper-schema", |
| 3 | + "id": "http://json-schema.org/draft-05/hyper-schema", |
4 | 4 | "title": "JSON Hyper-Schema",
|
5 | 5 | "allOf": [
|
6 | 6 | {
|
7 |
| - "$ref": "http://json-schema.org/draft-04/schema#" |
| 7 | + "$ref": "http://json-schema.org/draft-05/schema" |
8 | 8 | }
|
9 | 9 | ],
|
10 | 10 | "properties": {
|
11 | 11 | "additionalItems": {
|
12 | 12 | "anyOf": [
|
13 |
| - { |
14 |
| - "type": "boolean" |
15 |
| - }, |
16 |
| - { |
17 |
| - "$ref": "#" |
18 |
| - } |
| 13 | + { "type": "boolean" }, |
| 14 | + { "$ref": "#" } |
19 | 15 | ]
|
20 | 16 | },
|
21 | 17 | "additionalProperties": {
|
22 | 18 | "anyOf": [
|
23 |
| - { |
24 |
| - "type": "boolean" |
25 |
| - }, |
26 |
| - { |
27 |
| - "$ref": "#" |
28 |
| - } |
| 19 | + { "type": "boolean" }, |
| 20 | + { "$ref": "#" } |
29 | 21 | ]
|
30 | 22 | },
|
31 | 23 | "dependencies": {
|
32 | 24 | "additionalProperties": {
|
33 | 25 | "anyOf": [
|
34 |
| - { |
35 |
| - "$ref": "#" |
36 |
| - }, |
37 |
| - { |
38 |
| - "type": "array" |
39 |
| - } |
| 26 | + { "$ref": "#" }, |
| 27 | + { "type": "array" } |
40 | 28 | ]
|
41 | 29 | }
|
42 | 30 | },
|
43 | 31 | "items": {
|
44 | 32 | "anyOf": [
|
45 |
| - { |
46 |
| - "$ref": "#" |
47 |
| - }, |
48 |
| - { |
49 |
| - "$ref": "#/definitions/schemaArray" |
50 |
| - } |
| 33 | + { "$ref": "#" }, |
| 34 | + { "$ref": "#/definitions/schemaArray" } |
51 | 35 | ]
|
52 | 36 | },
|
53 | 37 | "definitions": {
|
54 |
| - "additionalProperties": { |
55 |
| - "$ref": "#" |
56 |
| - } |
| 38 | + "additionalProperties": { "$ref": "#" } |
57 | 39 | },
|
58 | 40 | "patternProperties": {
|
59 |
| - "additionalProperties": { |
60 |
| - "$ref": "#" |
61 |
| - } |
| 41 | + "additionalProperties": { "$ref": "#" } |
62 | 42 | },
|
63 | 43 | "properties": {
|
64 |
| - "additionalProperties": { |
65 |
| - "$ref": "#" |
66 |
| - } |
67 |
| - }, |
68 |
| - "allOf": { |
69 |
| - "$ref": "#/definitions/schemaArray" |
70 |
| - }, |
71 |
| - "anyOf": { |
72 |
| - "$ref": "#/definitions/schemaArray" |
73 |
| - }, |
74 |
| - "oneOf": { |
75 |
| - "$ref": "#/definitions/schemaArray" |
76 |
| - }, |
77 |
| - "not": { |
78 |
| - "$ref": "#" |
| 44 | + "additionalProperties": { "$ref": "#" } |
79 | 45 | },
|
| 46 | + "allOf": { "$ref": "#/definitions/schemaArray" }, |
| 47 | + "anyOf": { "$ref": "#/definitions/schemaArray" }, |
| 48 | + "oneOf": { "$ref": "#/definitions/schemaArray" }, |
| 49 | + "not": { "$ref": "#" }, |
80 | 50 |
|
81 | 51 | "links": {
|
82 | 52 | "type": "array",
|
83 |
| - "items": { |
84 |
| - "$ref": "#/definitions/linkDescription" |
85 |
| - } |
| 53 | + "items": { "$ref": "#/definitions/linkDescription" } |
86 | 54 | },
|
87 | 55 | "fragmentResolution": {
|
88 | 56 | "type": "string"
|
|
91 | 59 | "type": "object",
|
92 | 60 | "properties": {
|
93 | 61 | "type": {
|
94 |
| - "description": "A media type, as described in RFC 2046", |
95 | 62 | "type": "string"
|
96 | 63 | },
|
97 | 64 | "binaryEncoding": {
|
98 |
| - "description": "A content encoding scheme, as described in RFC 2045", |
99 | 65 | "type": "string"
|
100 | 66 | }
|
101 | 67 | }
|
102 | 68 | },
|
103 | 69 | "pathStart": {
|
104 |
| - "description": "Instances' URIs must start with this value for this schema to apply to them", |
105 | 70 | "type": "string",
|
106 | 71 | "format": "uri"
|
107 | 72 | }
|
108 | 73 | },
|
109 | 74 | "definitions": {
|
110 | 75 | "schemaArray": {
|
111 | 76 | "type": "array",
|
112 |
| - "items": { |
113 |
| - "$ref": "#" |
114 |
| - } |
| 77 | + "items": { "$ref": "#" } |
115 | 78 | },
|
116 | 79 | "linkDescription": {
|
117 | 80 | "title": "Link Description Object",
|
118 | 81 | "type": "object",
|
119 | 82 | "required": [ "href", "rel" ],
|
120 | 83 | "properties": {
|
121 | 84 | "href": {
|
122 |
| - "description": "a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing", |
123 | 85 | "type": "string"
|
124 | 86 | },
|
125 | 87 | "rel": {
|
126 |
| - "description": "relation to the target resource of the link", |
127 | 88 | "type": "string"
|
128 | 89 | },
|
129 | 90 | "title": {
|
130 |
| - "description": "a title for the link", |
131 | 91 | "type": "string"
|
132 | 92 | },
|
133 |
| - "targetSchema": { |
134 |
| - "description": "JSON Schema describing the link target", |
135 |
| - "$ref": "#" |
136 |
| - }, |
| 93 | + "targetSchema": { "$ref": "#" }, |
137 | 94 | "mediaType": {
|
138 |
| - "description": "media type (as defined by RFC 2046) describing the link target", |
139 | 95 | "type": "string"
|
140 | 96 | },
|
141 | 97 | "method": {
|
142 |
| - "description": "method for requesting the target of the link (e.g. for HTTP this might be \"GET\" or \"DELETE\")", |
143 | 98 | "type": "string"
|
144 | 99 | },
|
145 | 100 | "encType": {
|
146 |
| - "description": "The media type in which to submit data along with the request", |
147 | 101 | "type": "string",
|
148 | 102 | "default": "application/json"
|
149 | 103 | },
|
150 |
| - "schema": { |
151 |
| - "description": "Schema describing the data to submit along with the request", |
152 |
| - "$ref": "#" |
153 |
| - } |
| 104 | + "schema": { "$ref": "#" } |
154 | 105 | }
|
155 | 106 | }
|
156 | 107 | }
|
|
0 commit comments