Closed mmarseu closed 4 months ago
If the SBOM
- contains no
.metadata.tools
field, an array will be created.
Is this really according to our discussion in #142? Would not be the proper check if sbom.get("specVersion","") < 1.5 then list else dict
?
If the SBOM
- contains no
.metadata.tools
field, an array will be created.Is this really according to our discussion in #142?
Not at all. But it was an easy solution which works fine until the array version is removed from the spec (not before CycloneDX 2.0, I imagine, as that would be a breaking change).
Would not be the proper check
if sbom.get("specVersion","") < 1.5 then list else dict
?
Well, in real, non-pseudo code, this was a little harder to do, but it is done 😉
This PR adds support for transforming SBOMs using CycloneDX 1.5's new
.metadata.tools
object.If the SBOM
.metadata.tools
field, an array will be created.