Skip to content

Allow multiple values for "rel" #615

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions jsonschema-hyperschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,15 @@
</t>
<section title="rel" anchor="rel">
<t>
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.
</t>
<t>
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.
</t>
<t>
This property is required.
Expand Down Expand Up @@ -921,7 +928,10 @@
fragment of the "contextUri" field.
</t>
<t hangText="rel">
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.
</t>
<t hangText="targetUri">
The fully resolved URI (with a scheme) of the target resource. If the
Expand Down
9 changes: 8 additions & 1 deletion links.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@
]
},
"rel": {
"type": "string"
"anyOf": [
{ "type": "string" },
{
"type": "array",
"items": { "type": "string" },
"minItems": 1
}
]
},
"href": {
"type": "string",
Expand Down