Skip to content

Commit

Permalink
Added "relative_to_docs" value to absolute_links enum (#7812)
Browse files Browse the repository at this point in the history
* Add `"relative_to_docs"` value to `absolute_links` enum

* refactor to use `oneOf`

---------

Co-authored-by: Jake Beazley <jake.beazley@johnlewis.co.uk>
  • Loading branch information
Bzly and Jake Beazley authored Dec 21, 2024
1 parent 51e4d4b commit 7199342
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/schema/validation.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
},
"absolute_links": {
"title": "warning level when absolute links are used",
"$ref": "#/$defs/warning_levels"
"oneOf": [
{ "$ref": "#/$defs/warning_levels" },
{ "enum": ["relative_to_docs"] }
]
},
"unrecognized_links": {
"title": "warning level when a relative link cannot be resolved to a document",
Expand Down

0 comments on commit 7199342

Please sign in to comment.