-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathtd-vocab-anchor--Link.json
35 lines (35 loc) · 1.13 KB
/
td-vocab-anchor--Link.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"title": "td-vocab-anchor--Link",
"description": "anchor: By default, the context of a link is the URL of the representation it is associated with, and is serialised as a URI. When present, the anchor parameter overrides this with another URI, such as a fragment of this resource, or a third resource (i.e., when the anchor value is an absolute URI).",
"$schema": "http://json-schema.org/draft-07/schema#",
"is-complex": true,
"type": "object",
"properties": {
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/link_element"
}
}
},
"additionalProperties": true,
"definitions": {
"link_element": {
"if": {
"type": "object",
"properties": {
"anchor": {
"$ref": "#/definitions/url"
}
},
"required": ["anchor"]
},
"then": {
"const": "td-vocab-anchor--Link=pass"
}
},
"url": {
"type": "string"
}
}
}