Renovate JSON schema allows invalid package rules #26484
-
How are you running Renovate?Self-hosted Renovate If you're self-hosting Renovate, tell us what version of Renovate you run.N/A If you're self-hosting Renovate, select which platform you are using.Bitbucket Cloud (bitbucket.org) Was this something which used to work for you, and then stopped?I have not seen this working Describe the problemWe use recommended URL as a $schema: https://docs.renovatebot.com/renovate-schema.json Relevant debug logsLogs
Have you created a minimal reproduction repository?I have explained in the description why a minimal reproduction is impossible |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
It's not possible for the JSON schema to validate everything - for this we have our native validation. But if you can figure out how to make it more restrictive for packageRules specifically, you're welcome to submit a PR |
Beta Was this translation helpful? Give feedback.
-
Agreed but if you're not relying on JSON schema, maybe it's not worth mentioning it in the docs as a "$schema"?
Can't promise but I will give it a shot when I have time. |
Beta Was this translation helpful? Give feedback.
-
@rarkins a bit of a generic question: do you mean that it is impossible to define the configuration in JSON schema (would be great to understand more and see an example) or you're more concerned about the errors being very cryptic? On a side note, we use Typescript types as a source of truth in one of our project and generate JSON schema from these types of you're interested. |
Beta Was this translation helpful? Give feedback.
It's not possible for the JSON schema to validate everything - for this we have our native validation. But if you can figure out how to make it more restrictive for packageRules specifically, you're welcome to submit a PR