Skip to content

Commit 6d9faba

Browse files
handrewsdlax
authored andcommitted
Use a $ref to links instead of linkDescription in hyper-schema
1 parent 352a0bb commit 6d9faba

File tree

1 file changed

+3
-54
lines changed

1 file changed

+3
-54
lines changed

hyper-schema.json

Lines changed: 3 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -10,59 +10,6 @@
1010
"items": { "$ref": "#" }
1111
}
1212
]
13-
},
14-
"linkDescription": {
15-
"title": "Link Description Object",
16-
"type": "object",
17-
"required": [ "href" ],
18-
"properties": {
19-
"href": {
20-
"description": "a URI template, as defined by RFC 6570",
21-
"type": "string",
22-
"format": "uri-template"
23-
},
24-
"hrefSchema": {
25-
"description": "a schema for validating user input to the URI template, where the input is in the form of a JSON object with property names matching variable names in \"href\"",
26-
"allOf": [ {"$ref": "#"} ]
27-
},
28-
"rel": {
29-
"description": "relation to the target resource of the link",
30-
"type": "string"
31-
},
32-
"anchor": {
33-
"description": "the URI of the context resource",
34-
"type": "string",
35-
"format": "uri-reference"
36-
},
37-
"title": {
38-
"description": "a title for the link",
39-
"type": "string"
40-
},
41-
"description": {
42-
"description": "additional information about the purpose or usage of the link",
43-
"type": "string"
44-
},
45-
"targetSchema": {
46-
"description": "JSON Schema describing the link target",
47-
"allOf": [ { "$ref": "#" } ]
48-
},
49-
"mediaType": {
50-
"description": "media type (as defined by RFC 2046) describing the link target",
51-
"type": "string"
52-
},
53-
"submissionEncType": {
54-
"description": "The media type in which to submit data along with the request",
55-
"type": "string",
56-
"default": "application/json"
57-
},
58-
"submissionSchema": {
59-
"description": "Schema describing the data to submit along with the request",
60-
"allOf": [ { "$ref": "#" } ]
61-
},
62-
"$comment": {
63-
"type": "string"
64-
}
65-
}
6613
}
6714
},
6815
"allOf": [ { "$ref": "http://json-schema.org/draft-06/schema#" } ],
@@ -108,7 +55,9 @@
10855
},
10956
"links": {
11057
"type": "array",
111-
"items": { "$ref": "#/definitions/linkDescription" }
58+
"items": {
59+
"$ref": "http://json-schema.org/draft-06/links#"
60+
}
11261
},
11362
"media": {
11463
"type": "object",

0 commit comments

Comments
 (0)