You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which Renovate happily accepts, I get validation errors when running check-jsonschema against it:
$ check-jsonschema --builtin-schema=vendor.renovate renovate.json
Schema validation errors were encountered.
.gitlab/renovate.json::$.packageRules[0].matchPackagePatterns: ['*'] is not valid under any of the given schemas
Underlying errors caused this.
Best Match:
$.packageRules[0].matchPackagePatterns: ['*'] is not of type 'string'
Best Deep Match:
$.packageRules[0].matchPackagePatterns[0]: '*' is not a 'regex'
The text was updated successfully, but these errors were encountered:
Scratch that -- I removed the label -- their schema is fine.
This seems like a simple case and I over-indexed on the Best Match. It's nice to see Best Deep Match providing value: '*' is, as it says, not a 'regex'.
Switching to ".*" for your pattern resolves it. Renovate may be lenient if the input pattern doesn't parse as a regex (e.g., they may failover to a globbing behavior), but I don't see a straightforward way for check-jsonschema to permit this.
If * is working to match on things, that would be a little interesting. If .* doesn't match, then I think that would make this into an upstream doc/schema issue -- it would mean that this field is not a regex.
With this
renovate.json
file:which Renovate happily accepts, I get validation errors when running check-jsonschema against it:
The text was updated successfully, but these errors were encountered: