0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 05:28:35 +00:00
renovatebot_renovate/tools/schemas/replacements-schema.json
RahulGautamSingh 88e1f181d7
test(lib/data): ReplacementsSchema (#31714)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2024-10-16 07:07:13 +00:00

62 lines
1.7 KiB
JSON

{
"$schema": "https://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"all": {
"type": "object",
"properties": {
"description": { "type": "string" },
"extends": {
"type": "array",
"items": { "type": "string" }
},
"ignoreDeps": {
"type": "array",
"items": { "type": "string" }
}
},
"required": ["description", "extends"]
}
},
"patternProperties": {
"^[a-zA-Z0-9-]+$": {
"type": "object",
"properties": {
"description": { "type": "string" },
"packageRules": {
"type": "array",
"items": {
"type": "object",
"properties": {
"matchCurrentVersion": { "type": "string" },
"matchDatasources": {
"type": "array",
"items": { "type": "string" }
},
"matchPackageNames": {
"type": "array",
"items": { "type": "string" }
},
"replacementName": { "type": "string" },
"replacementVersion": { "type": "string" },
"description": { "type": "string" },
"replacementNameTemplate": { "type": "string" }
},
"required": ["matchDatasources", "matchPackageNames"]
},
"contains": {
"type": "object",
"oneOf": [
{ "required": ["replacementName"] },
{ "required": ["replacementNameTemplate"] }
]
},
"minItems": 1
}
},
"required": ["description", "packageRules"]
}
},
"additionalProperties": false
}