schema/grype/db-diff/json/README.md
db-diff JSON SchemaThis is the JSON schema for output from the grype db diff command. The required inputs for defining the JSON schema are as follows:
grype/db/v6/diff.SchemaVersion that governs the schema versionResult type definition within github.com/anchore/grype/grype/db/v6/diff/result.go that governs the overall document shapeVersioning the JSON schema must be done manually by changing the SchemaVersion constant within grype/db/v6/diff/schema.go.
Follow semver guidelines for incrementing the version.
Create the new schema by running make generate-json-schema from the root of the repo:
schema/grype/db-diff/json/schema-$VERSION.jsonNote: never delete a JSON schema and never change an existing JSON schema once it has been published in a release! Only add new schemas with a newly incremented version.