Closed cyberbliss closed 1 year ago
I think that adding XML support would be a nice additional feature.
Additionally, it would be useful to have the tool report--in the meantime before XML parsing functionality is added--that the provided CycloneDX document is not JSON via an error message instead of reporting an invalid spec.
wdyt?
Sounds like a good suggestion to me
Hi,
The code for specifying the CDX decoder assumes that the SBOM will be in json format: In cdx_report.go:
decoder := cdx.NewBOMDecoder(f, cdx.BOMFileFormatJSON)
As a consequence any XML format CycloneDX SBOMs get marked as invalid specs. This seems misleading to me.