diff --git a/jsonschema-hyperschema.xml b/jsonschema-hyperschema.xml index fee21836..636792af 100644 --- a/jsonschema-hyperschema.xml +++ b/jsonschema-hyperschema.xml @@ -456,8 +456,15 @@
- The value of this property MUST be a string, and MUST be a single - Link Relation Type as defined in RFC 8288, Section 2.1. + The value of this property MUST be either a string or + an array of strings. If the value is an array, + it MUST contain at least one string. + + + Each string MUST be a single Link Relation Type as defined + in RFC 8288, Section 2.1, including the restriction that + additional semantics SHOULD NOT be inferred based upon the + presence or absence of another link relation type. This property is required. @@ -921,7 +928,10 @@ fragment of the "contextUri" field. - The link relation type, as it appears in the LDO. + The link relation type. When multiple link relation types appear + in the LDO, for the purpose of producing output, they are to be + treated as multiple LDOs, each with a single link relation type + but otherwise identical. The fully resolved URI (with a scheme) of the target resource. If the diff --git a/links.json b/links.json index addd1f06..993d01bc 100644 --- a/links.json +++ b/links.json @@ -22,7 +22,14 @@ ] }, "rel": { - "type": "string" + "anyOf": [ + { "type": "string" }, + { + "type": "array", + "items": { "type": "string" }, + "minItems": 1 + } + ] }, "href": { "type": "string",