|
3 | 3 | "id": "http://json-schema.org/draft/hyper-schema#",
|
4 | 4 | "title": "JSON Hyper-Schema",
|
5 | 5 | "allOf": [
|
6 |
| - {"$ref": "http://json-schema.org/draft-04/schema#"} |
| 6 | + {"$ref": "http://json-schema.org/draft/schema#"} |
7 | 7 | ],
|
8 | 8 | "properties": {
|
9 | 9 | "additionalItems": {
|
|
48 | 48 |
|
49 | 49 | "base": {
|
50 | 50 | "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.",
|
51 |
| - "type": "string" |
| 51 | + "type": "string", |
| 52 | + "format": "uritemplate" |
| 53 | + }, |
| 54 | + "baseVars": { |
| 55 | + "description": "an object where each property is a variable name from \"base\" and the value is a schema describing the data needed to fill in the variable.", |
| 56 | + "type": "object", |
| 57 | + "additionalProperties": {"$ref": "#"} |
52 | 58 | },
|
53 | 59 | "links": {
|
54 | 60 | "type": "array",
|
|
80 | 86 | "properties": {
|
81 | 87 | "href": {
|
82 | 88 | "description": "a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing",
|
83 |
| - "type": "string" |
| 89 | + "type": "string", |
| 90 | + "format": "uritemplate" |
| 91 | + }, |
| 92 | + "hrefVars": { |
| 93 | + "description": "an object where each property is a variable name from \"href\" and the value is a schema describing the data needed to fill in the variable.", |
| 94 | + "type": "object", |
| 95 | + "additionalProperties": {"$ref": "#"} |
84 | 96 | },
|
85 | 97 | "rel": {
|
86 | 98 | "description": "relation to the target resource of the link",
|
|
92 | 104 | },
|
93 | 105 | "targetSchema": {
|
94 | 106 | "description": "JSON Schema describing the link target",
|
95 |
| - "$ref": "#" |
| 107 | + "allOf": [{"$ref": "#"}] |
96 | 108 | },
|
97 | 109 | "mediaType": {
|
98 | 110 | "description": "media type (as defined by RFC 2046) describing the link target",
|
99 | 111 | "type": "string"
|
100 | 112 | },
|
101 |
| - "method": { |
102 |
| - "description": "specifies that the client can construct a templated query (\"get\") or non-idempotent request (\"post\") to a resource.", |
103 |
| - "type": "string" |
104 |
| - }, |
105 | 113 | "encType": {
|
106 |
| - "description": "The media type in which to submit data along with the request", |
| 114 | + "description": "The media type in which to submit data in the request body", |
107 | 115 | "type": "string",
|
108 | 116 | "default": "application/json"
|
109 | 117 | },
|
110 | 118 | "schema": {
|
111 |
| - "description": "Schema describing the data to submit along with the request", |
112 |
| - "$ref": "#" |
| 119 | + "description": "Schema describing the data to submit in the request body"}, |
| 120 | + "allOf": [{"$ref": "#"}] |
113 | 121 | }
|
114 | 122 | }
|
115 | 123 | }
|
|
0 commit comments