Skip to content

Fail to validate Renovate.json file #450

@pzelnip

Description

@pzelnip

With this renovate.json file:

{
    "$schema": "https://docs.renovatebot.com/renovate-schema.json",
    "packageRules": [
        {
            "groupName": "all non-major dependencies",
            "groupSlug": "all-minor-patch",
            "matchPackagePatterns": ["*"],
            "matchUpdateTypes": ["minor", "patch"]
        }
    ]
}

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions