This pull request introduces changes to support multiple directories for package manifests in the dependabot-2.0 schema. The changes include adding a new directories field, modifying the required fields, and adding new test cases.
Changes to the schema:
src/schemas/json/dependabot-2.0.json: Added a new directories field to specify multiple locations of package manifests. This field is an array of strings with at least one item and all items must be unique.
src/schemas/json/dependabot-2.0.json: Modified the required fields. Now, it requires either directories or directory along with package-ecosystem and schedule.
https://github.blog/changelog/2024-04-29-dependabot-multi-directory-configuration-public-beta-now-available/
This pull request introduces changes to support multiple directories for package manifests in the
dependabot-2.0
schema. The changes include adding a newdirectories
field, modifying the required fields, and adding new test cases.Changes to the schema:
src/schemas/json/dependabot-2.0.json
: Added a newdirectories
field to specify multiple locations of package manifests. This field is an array of strings with at least one item and all items must be unique.src/schemas/json/dependabot-2.0.json
: Modified the required fields. Now, it requires eitherdirectories
ordirectory
along withpackage-ecosystem
andschedule
.Addition of new test cases:
src/negative_test/dependabot-2.0/directory-and-directories.json
: Added a new test case where bothdirectories
anddirectory
fields are present.src/test/dependabot-2.0/directories.json
: Added a new test case that uses the newdirectories
field.