Use modern version of validator to validate Dependabot configuration files #420
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The repository infrastructure validates the project's own, as well as the "asset", Dependabot configuration files against the JSON schema. The ajv-cli JSON schema validator is used to perform the validation.
Support for the JSON schema "Draft-04" specification was dropped at the 4.0.0 release of ajv-cli. This means that the previous version (3.3.0) must be used when validating files against a JSON schema based on the "Draft 4" specification. When working with schemas based on newer specification versions, it is preferred to use the latest version of ajv-cli in order to benefit from the ongoing development on the tool. For this reason, two different versions of ajv-cli are used.
At the time the system for validating the Dependabot configuration files was set up, that JSON schema was based on the "Draft-04" specification, so ajv-cli 3.3.0 was used. Since that time the schema was updated to "Draft-07" so it is now possible to use the modern ajv-cli for this validation.