From 7199342dd1e3ce5693943aa3cebe0340c16ffdc2 Mon Sep 17 00:00:00 2001 From: Bzly Date: Sat, 21 Dec 2024 11:46:50 +0000 Subject: [PATCH] Added `"relative_to_docs"` value to `absolute_links` enum (#7812) * Add `"relative_to_docs"` value to `absolute_links` enum * refactor to use `oneOf` --------- Co-authored-by: Jake Beazley --- docs/schema/validation.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/schema/validation.json b/docs/schema/validation.json index 94c0c3a69..dd61f65a1 100644 --- a/docs/schema/validation.json +++ b/docs/schema/validation.json @@ -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",