https://ns.adobe.com/xdm/external/hal/link
A Link Object represents a hyperlink from the containing resource to a URI.
-- from JSON Hypertext Application Language, section 5
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
---|---|---|---|---|---|---|
Can be instantiated | Yes | Experimental | No | Forbidden | Permitted | external/hal/hal-link.schema.json |
{
"href": "http://www.adobe.com/{product}",
"templated": true
}
{
"href": "http://www.adobe.com/"
}
Property | Type | Required | Defined by |
---|---|---|---|
deprecation | string |
Optional | HAL Link (this schema) |
href | string |
Optional | HAL Link (this schema) |
hreflang | string |
Optional | HAL Link (this schema) |
name | string |
Optional | HAL Link (this schema) |
profile | string |
Optional | HAL Link (this schema) |
templated | boolean |
Optional | HAL Link (this schema) |
title | string |
Optional | HAL Link (this schema) |
type | string |
Optional | HAL Link (this schema) |
* |
any | Additional | this schema allows additional properties |
Its presence indicates that the link is to be deprecated (i.e. removed) at a future date. Its value is a URL that SHOULD provide further information about the deprecation.
deprecation
- is optional
- type:
string
- defined in this schema
string
- format:
uri
– Uniformous Resource Identifier (according to RFC3986)
If the value is a URI Template then the Link Object SHOULD have a
templated
attribute whose value istrue
href
- is optional
- type:
string
- defined in this schema
string
Its value is a string and is intended for indicating the language of the target resource (as defined by RFC5988
hreflang
- is optional
- type:
string
- defined in this schema
string
All instances must conform to this regular expression (test examples here):
^(((([A-Za-z]{2,3}(-([A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-([A-Za-z]{4}))?(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-([0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(x(-[A-Za-z0-9]{1,8})+))?)|(x(-[A-Za-z0-9]{1,8})+)|((en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang)))$
Its value MAY be used as a secondary key for selecting Link Objects which share the same relation type.
name
- is optional
- type:
string
- defined in this schema
string
Its value is a string which is a URI that hints about the profile (as defined by I-D.wilde-profile-link of the target resource.
profile
- is optional
- type:
string
- defined in this schema
string
- format:
uri
– Uniformous Resource Identifier (according to RFC3986)
Its value is boolean and SHOULD be true when the Link Object's
href
property is a URI Template.\n\nIts value SHOULD be considered false if it is undefined or any other value thantrue
.
templated
- is optional
- type:
boolean
- defined in this schema
boolean
Its value is a string and is intended for labelling the link with a human-readable identifier (as defined by RFC5988)
title
- is optional
- type:
string
- defined in this schema
string
Its value is a string used as a hint to indicate the media type expected when dereferencing the target resource.
type
- is optional
- type:
string
- defined in this schema
string
All instances must conform to this regular expression (test examples here):
\w+\/[-.\w]+(?:\+[-.\w]+)?