mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 00:43:20 +01:00
18 lines
269 B
Go
18 lines
269 B
Go
package spdx22json
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/sbom"
|
|
)
|
|
|
|
const ID sbom.FormatID = "spdx-2-json"
|
|
|
|
// note: this format is LOSSY relative to the syftjson format
|
|
func Format() sbom.Format {
|
|
return sbom.NewFormat(
|
|
ID,
|
|
encoder,
|
|
decoder,
|
|
validator,
|
|
)
|
|
}
|