Skip to content

Commit

Permalink
Add validation for absolute self link in item schema
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed May 14, 2024
1 parent edf2cc9 commit 4f8e9c2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions item-spec/json-schema/item.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,21 @@
"title": "Link title",
"type": "string"
}
},
"$comment": "Link with relationship `self` must be absolute URI",
"if": {
"properties": {
"rel": {
"const": "self"
}
}
},
"then": {
"properties": {
"href": {
"format": "iri"
}
}
}
},
{
Expand Down

0 comments on commit 4f8e9c2

Please sign in to comment.