Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add basic support for CDX 1.5 (#488)
This PR introduces basic support for CDX 1.5. Ref: - #404 **Schema:** - Extended schema-downloader and added specification files, - Adapted `README` and `SchemaVersion` for 1.5 **Model:** - Added `SchemaVersion1Dot5`, serializable annotations, - Extended `ComponentType` and `ExternalReferenceType` enums **Tests:** - Generated snapshots for 1.5. - In some existing tests `bom-ref` changed, since 1.5 is now listed before 1.4 **Chore:** - Added `newline = '\n'` to schema-downloader and `writeSnapshot` for cross-platform support ---- * feat: add basic support for CDX 1.5 Signed-off-by: Johannes Feichtner <[email protected]> * docs: note minversions of `HashAlgorithm` cases Signed-off-by: Jan Kowalleck <[email protected]> * docs: set ref after schema download Signed-off-by: Jan Kowalleck <[email protected]> * refactor: add the newly missing/TODO elements Signed-off-by: Jan Kowalleck <[email protected]> * docs: note minversions of `ComponentType` cases Signed-off-by: Jan Kowalleck <[email protected]> * refactor: adjust xml child order for CDX1.5 Signed-off-by: Jan Kowalleck <[email protected]> * refactor: adjust xml child order for CDX1.5 Signed-off-by: Jan Kowalleck <[email protected]> * docs: update to latest CDX meta Signed-off-by: Jan Kowalleck <[email protected]> * refactor: adjust xml child order for CDX1.5 Signed-off-by: Jan Kowalleck <[email protected]> * feat: new enum cases fr VulnerabilityScoreSource Signed-off-by: Jan Kowalleck <[email protected]> * refactor: adjust xml child order for CDX1.5 Signed-off-by: Jan Kowalleck <[email protected]> * tests: adjust to latest implementation Signed-off-by: Jan Kowalleck <[email protected]> * revert deletion by accident Signed-off-by: Jan Kowalleck <[email protected]> --------- Signed-off-by: Johannes Feichtner <[email protected]> Signed-off-by: Jan Kowalleck <[email protected]> Co-authored-by: Jan Kowalleck <[email protected]> Signed-off-by: Jan Kowalleck <[email protected]>
- Loading branch information