From 253bcd62837903388d209f119099dc8601b94cf2 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Tue, 16 May 2023 15:56:14 +0200 Subject: [PATCH 1/3] fix: update json-schema --- tools/docs/schema.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tools/docs/schema.ts b/tools/docs/schema.ts index abc3c6cbb133db..957ed2b7fa97bc 100644 --- a/tools/docs/schema.ts +++ b/tools/docs/schema.ts @@ -49,7 +49,12 @@ function createSingleConfig(option: RenovateOptions): Record { 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,12 @@ function addChildrenArrayInParents(): void { allOf: [ { type: 'object', - properties: {}, + properties: { + description: { + type: 'string', + description: 'A custom description', + }, + }, }, ], }; From 04ad37619963e37c20719046bd38e664cc2f1d70 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Wed, 17 May 2023 09:42:57 +0200 Subject: [PATCH 2/3] Update tools/docs/schema.ts --- tools/docs/schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/docs/schema.ts b/tools/docs/schema.ts index 957ed2b7fa97bc..55b21e9814aa9d 100644 --- a/tools/docs/schema.ts +++ b/tools/docs/schema.ts @@ -91,7 +91,7 @@ function addChildrenArrayInParents(): void { properties: { description: { type: 'string', - description: 'A custom description', + description: 'A custom description for this configuration object', }, }, }, From 1868bd46c95aef81ec3b1246b45b68a8cdd5c95e Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Wed, 17 May 2023 10:03:36 +0200 Subject: [PATCH 3/3] fix: lint --- tools/docs/schema.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/docs/schema.ts b/tools/docs/schema.ts index 55b21e9814aa9d..ed40fbe3c25dcd 100644 --- a/tools/docs/schema.ts +++ b/tools/docs/schema.ts @@ -91,7 +91,8 @@ function addChildrenArrayInParents(): void { properties: { description: { type: 'string', - description: 'A custom description for this configuration object', + description: + 'A custom description for this configuration object', }, }, },