-
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
It would be great to provide a factory/deserializer, in order to provide a cdx.Models.Bom from an inputstream of json.
return JSON.parse(fs.readFileSync(sbomFile, 'utf8')) as cdx.Models.Bomreturns a "halfbaked" model, where calls to
const packages: Package[] = bom.components.sorted().map(component => {
const packageUrl: PackageURL = component.purl as PackageURL
return new Package(packageUrl)
})will raise
TypeError: bom.components.sorted is not a function
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed