|
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 | "definitions": {
|
6 | 6 | "schemaArray": {
|
|
10 | 10 | "linkDescription": {
|
11 | 11 | "title": "Link Description Object",
|
12 | 12 | "type": "object",
|
13 |
| - "required": [ "href", "rel" ], |
| 13 | + "required": [ "href" ], |
14 | 14 | "properties": {
|
15 | 15 | "href": {
|
16 | 16 | "description": "a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing",
|
|
33 | 33 | "type": "string"
|
34 | 34 | },
|
35 | 35 | "method": {
|
36 |
| - "description": "method for requesting the target of the link (e.g. for HTTP this might be \"GET\" or \"DELETE\")", |
| 36 | + "description": "specifies that the client can construct a templated query (\"get\") or non-idempotent request (\"post\") to a resource.", |
37 | 37 | "type": "string"
|
38 | 38 | },
|
39 | 39 | "encType": {
|
|
48 | 48 | }
|
49 | 49 | }
|
50 | 50 | },
|
51 |
| - "allOf": [ { "$ref": "http://json-schema.org/draft-04/schema#" } ], |
| 51 | + "allOf": [ { "$ref": "http://json-schema.org/draft-05/schema#" } ], |
52 | 52 | "properties": {
|
53 | 53 | "additionalItems": {
|
54 | 54 | "anyOf": [
|
|
90 | 90 | "oneOf": { "$ref": "#/definitions/schemaArray" },
|
91 | 91 | "not": { "$ref": "#" },
|
92 | 92 |
|
| 93 | + "base": { |
| 94 | + "description": "URI Template resolved as for the 'href' keyword in the Link Description Object. The resulting URI Reference is resolved against the current URI base and sets the new URI base for URI references within the instance.", |
| 95 | + "type": "string" |
| 96 | + }, |
93 | 97 | "links": {
|
94 | 98 | "type": "array",
|
95 | 99 | "items": { "$ref": "#/definitions/linkDescription" }
|
96 | 100 | },
|
97 |
| - "fragmentResolution": { |
98 |
| - "type": "string" |
99 |
| - }, |
100 | 101 | "media": {
|
101 | 102 | "type": "object",
|
102 | 103 | "properties": {
|
|
110 | 111 | }
|
111 | 112 | }
|
112 | 113 | },
|
113 |
| - "pathStart": { |
114 |
| - "description": "Instances' URIs must start with this value for this schema to apply to them", |
115 |
| - "type": "string", |
116 |
| - "format": "uri" |
117 |
| - }, |
118 | 114 | "readOnly": {
|
119 | 115 | "description": "If true, indicates that the value of this property is controlled by the server.",
|
120 | 116 | "type": "boolean",
|
|
0 commit comments