1
1
{
2
- "$schema" : "http://json-schema.org/draft-04/hyper-schema#",
3
- "id" : "http://json-schema.org/draft-04/links#",
4
- "type" : "object",
5
-
6
- "properties" : {
7
- "rel" : {
8
- "type" : "string"
9
- },
10
-
11
- "href" : {
12
- "type" : "string"
13
- },
14
-
15
- "template" : {
16
- "type" : "string"
17
- },
18
-
19
- "targetSchema" : {"$ref" : "http://json-schema.org/draft-04/hyper-schema#"},
20
-
21
- "method" : {
22
- "type" : "string",
23
- "default" : "GET"
24
- },
25
-
26
- "enctype" : {
27
- "type" : "string"
28
- },
29
-
30
- "properties" : {
31
- "type" : "object",
32
- "additionalProperties" : {"$ref" : "http://json-schema.org/draft-04/hyper-schema#"}
33
- }
34
- },
35
-
36
- "required" : ["rel", "href"],
37
-
38
- "dependencies" : {
39
- "enctype" : "method"
40
- }
41
- }
2
+ "$schema": "http://json-schema.org/draft-04/hyper-schema#",
3
+ "id": "http://json-schema.org/draft-04/links#",
4
+ "title": "Link Description Object",
5
+ "type": "object",
6
+ "required": [ "href", "rel" ],
7
+ "properties": {
8
+ "href": {
9
+ "description": "a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing",
10
+ "type": "string"
11
+ },
12
+ "rel": {
13
+ "description": "relation to the target resource of the link",
14
+ "type": "string"
15
+ },
16
+ "title": {
17
+ "description": "a title for the link",
18
+ "type": "string"
19
+ },
20
+ "targetSchema": {
21
+ "description": "JSON Schema describing the link target",
22
+ "$ref": "hyper-schema#"
23
+ },
24
+ "mediaType": {
25
+ "description": "media type (as defined by RFC 2046) describing the link target",
26
+ "type": "string"
27
+ },
28
+ "method": {
29
+ "description": "method for requesting the target of the link (e.g. for HTTP this might be \"GET\" or \"DELETE\")",
30
+ "type": "string"
31
+ },
32
+ "encType": {
33
+ "description": "The media type in which to submit data along with the request",
34
+ "type": "string",
35
+ "default": "application/json"
36
+ },
37
+ "schema": {
38
+ "description": "Schema describing the data to submit along with the request",
39
+ "$ref": "hyper-schema#"
40
+ }
41
+ }
42
+ }
0 commit comments