Skip to content

Commit 67ff041

Browse files
authored
Merge pull request json-schema-org#406 from dlax/meta-remove-description-and-use-links
meta schemas cleanup: remove descriptions, use and update "links.json"
2 parents 352a0bb + 971b986 commit 67ff041

File tree

2 files changed

+22
-68
lines changed

2 files changed

+22
-68
lines changed

hyper-schema.json

+3-57
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#" } ],
@@ -103,22 +50,21 @@
10350
"propertyNames": { "$ref": "#" },
10451

10552
"base": {
106-
"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.",
10753
"type": "string"
10854
},
10955
"links": {
11056
"type": "array",
111-
"items": { "$ref": "#/definitions/linkDescription" }
57+
"items": {
58+
"$ref": "http://json-schema.org/draft-06/links#"
59+
}
11260
},
11361
"media": {
11462
"type": "object",
11563
"properties": {
11664
"type": {
117-
"description": "A media type, as described in RFC 2046",
11865
"type": "string"
11966
},
12067
"binaryEncoding": {
121-
"description": "A content encoding scheme, as described in RFC 2045",
12268
"type": "string"
12369
}
12470
}

links.json

+19-11
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,46 @@
66
"required": [ "href" ],
77
"properties": {
88
"href": {
9-
"description": "a URI template, as defined by RFC 6570",
109
"type": "string",
1110
"format": "uri-template"
1211
},
1312
"hrefSchema": {
14-
"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\"",
15-
"allOf": [ {"$ref": "#"} ]
13+
"allOf": [
14+
{ "$ref": "http://json-schema.org/draft-06/hyper-schema#" }
15+
]
1616
},
1717
"rel": {
18-
"description": "relation to the target resource of the link",
1918
"type": "string"
2019
},
20+
"anchor": {
21+
"type": "string",
22+
"format": "uri-reference"
23+
},
2124
"title": {
22-
"description": "a title for the link",
25+
"type": "string"
26+
},
27+
"description": {
2328
"type": "string"
2429
},
2530
"targetSchema": {
26-
"description": "JSON Schema describing the link target",
27-
"allOf": [ { "$ref": "hyper-schema#" } ]
31+
"allOf": [
32+
{ "$ref": "http://json-schema.org/draft-06/hyper-schema#" }
33+
]
2834
},
2935
"mediaType": {
30-
"description": "media type (as defined by RFC 2046) describing the link target",
3136
"type": "string"
3237
},
3338
"submissionEncType": {
34-
"description": "The media type in which to submit data along with the request",
3539
"type": "string",
3640
"default": "application/json"
3741
},
3842
"submissionSchema": {
39-
"description": "Schema describing the data to submit along with the request",
40-
"allOf": [ { "$ref": "hyper-schema#" } ]
43+
"allOf": [
44+
{ "$ref": "http://json-schema.org/draft-06/hyper-schema#" }
45+
]
46+
},
47+
"$comment": {
48+
"type": "string"
4149
}
4250
}
4351
}

0 commit comments

Comments
 (0)