Skip to content
Snippets Groups Projects
Unverified Commit 1c13cf43 authored by Michael Kriese's avatar Michael Kriese Committed by GitHub
Browse files

fix: update json-schema (#22262)

parent 3fccfbe9
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,12 @@ function createSingleConfig(option: RenovateOptions): Record<string, unknown> { ...@@ -49,7 +49,12 @@ function createSingleConfig(option: RenovateOptions): Record<string, unknown> {
if (hasKey('format', option) && option.format) { if (hasKey('format', option) && option.format) {
temp.format = 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; temp.enum = option.allowedValues;
} }
} }
...@@ -83,7 +88,13 @@ function addChildrenArrayInParents(): void { ...@@ -83,7 +88,13 @@ function addChildrenArrayInParents(): void {
allOf: [ allOf: [
{ {
type: 'object', type: 'object',
properties: {}, properties: {
description: {
type: 'string',
description:
'A custom description for this configuration object',
},
},
}, },
], ],
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment