From 1c13cf4302f5eba5d863532d611a92511375060e Mon Sep 17 00:00:00 2001
From: Michael Kriese <michael.kriese@visualon.de>
Date: Wed, 17 May 2023 10:27:04 +0200
Subject: [PATCH] fix: update json-schema (#22262)

---
 tools/docs/schema.ts | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/tools/docs/schema.ts b/tools/docs/schema.ts
index abc3c6cbb1..ed40fbe3c2 100644
--- a/tools/docs/schema.ts
+++ b/tools/docs/schema.ts
@@ -49,7 +49,12 @@ function createSingleConfig(option: RenovateOptions): Record<string, unknown> {
     if (hasKey('format', option) && option.format) {
       temp.format = option.format;
     }
-    if (option.allowedValues) {
+    if (option.name === 'versioning') {
+      temp.oneOf = [
+        { enum: option.allowedValues },
+        { type: 'string', pattern: '^regex:' },
+      ];
+    } else if (option.allowedValues) {
       temp.enum = option.allowedValues;
     }
   }
@@ -83,7 +88,13 @@ function addChildrenArrayInParents(): void {
         allOf: [
           {
             type: 'object',
-            properties: {},
+            properties: {
+              description: {
+                type: 'string',
+                description:
+                  'A custom description for this configuration object',
+              },
+            },
           },
         ],
       };
-- 
GitLab