Skip to content

Commit de258fc

Browse files
authored
feat(renovate): add previous major versions' schemas + global self-hosted config (#5294)
* feat(renovate): introduce "global" JSON schema As part of Renovate 41.x we introduced the separation of "repo" and "global" configuration into separate JSON Schema documents. * feat(renovate): add previous major versions' schemas As noted in #5285, it would be convenient to have the previous versions of Renovate JSON Schema files, for use after the major version is bumped and no longer supported. As a starting point we can look at the major versions in use in 2025, retrieving them from the `docs.tgz` on the last release in a given major series. This also requires we: - add the `$id` and `id` fields - run `prettier` on the schemas - make sure validation doesn't try running in `strict` Ajv mode - make sure validation ignores custom properties - make sure spell check doesn't flag partial regexes like `|[Cc]ontainer` as a typo Closes #5285.
1 parent 4cabda4 commit de258fc

File tree

8 files changed

+27992
-2
lines changed

8 files changed

+27992
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ repos:
2525
args:
2626
[
2727
'--ignore-words-list',
28-
'crate,ninjs,ans,specif,seh,specifid,deriver,isnt,tye,forin,dependees,rouge,interm,fo,wast,nome,statics,ue,aack,gost,inout,provId,handels,bu,testng,ags,edn,aks,te,decorder,provid,branche,alse,nd,mape,wil,clude,wit,flate,omlet,THIRDPARTY,NotIn,notIn,CopyIn,Requestor,requestor,re-use,ofo,abl,dout,foto,vor,wel,NAM,BRIN,everyTime,afterAll,beforeAll',
28+
'crate,ninjs,ans,specif,seh,specifid,deriver,isnt,tye,forin,dependees,rouge,interm,fo,wast,nome,statics,ue,aack,gost,inout,provId,handels,bu,testng,ags,edn,aks,te,decorder,provid,branche,alse,nd,mape,wil,clude,wit,flate,omlet,THIRDPARTY,NotIn,notIn,CopyIn,Requestor,requestor,re-use,ofo,abl,dout,foto,vor,wel,NAM,BRIN,everyTime,afterAll,beforeAll,ontainer',
2929
]

src/api/json/catalog.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5445,7 +5445,21 @@
54455445
".renovaterc.json",
54465446
".renovaterc.json5"
54475447
],
5448-
"url": "https://docs.renovatebot.com/renovate-schema.json"
5448+
"url": "https://docs.renovatebot.com/renovate-schema.json",
5449+
"versions": {
5450+
"41": "https://www.schemastore.org/renovate-41.json",
5451+
"40": "https://www.schemastore.org/renovate-40.json",
5452+
"39": "https://www.schemastore.org/renovate-39.json"
5453+
}
5454+
},
5455+
{
5456+
"name": "Renovate global configuration",
5457+
"description": "Renovate global self-hosting configuration file options. Documentation: https://docs.renovatebot.com/self-hosted-configuration/",
5458+
"fileMatch": [],
5459+
"url": "https://docs.renovatebot.com/renovate-global-schema.json",
5460+
"versions": {
5461+
"41": "https://www.schemastore.org/renovate-global-schema-41.json"
5462+
}
54495463
},
54505464
{
54515465
"name": "RenderCV",

src/schema-validation.jsonc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@
187187
"pylock.json",
188188
"rehyperc.json",
189189
"remarkrc.json",
190+
"renovate-39.json",
191+
"renovate-40.json",
192+
"renovate-41.json",
193+
"renovate-global-schema-41.json",
190194
"resjson.json",
191195
"sarif-1.0.0.json",
192196
"size-limit.json",
@@ -380,6 +384,7 @@
380384
"problem_package_generators.json",
381385
"theme-v1.json",
382386
"renovate.json",
387+
"renovate-global-schema.json",
383388
"markdownlint.json",
384389
"geojson.json",
385390
"semgrep.json",
@@ -1201,6 +1206,12 @@
12011206
"rancher-fleet-0.8.json": {
12021207
"externalSchema": ["base.json"]
12031208
},
1209+
"renovate-41.json": {
1210+
"unknownKeywords": ["allowComments", "x-renovate-version"]
1211+
},
1212+
"renovate-global-schema-41.json": {
1213+
"unknownKeywords": ["allowComments", "x-renovate-version"]
1214+
},
12041215
"rc3-collection-0.0.3.json": {
12051216
"externalSchema": ["rc3-auth-0.0.3.json"]
12061217
},

0 commit comments

Comments
 (0)