@@ -12,18 +12,18 @@ import (
1212
1313// SBOMDocument represents a CycloneDX 1.5 Software Bill of Materials.
1414type SBOMDocument struct {
15- BOMFormat string `json:"bomFormat"`
16- SpecVersion string `json:"specVersion"`
17- SerialNumber string `json:"serialNumber,omitempty"`
18- Version int `json:"version"`
19- Metadata SBOMMetadata `json:"metadata"`
15+ BOMFormat string `json:"bomFormat"`
16+ SpecVersion string `json:"specVersion"`
17+ SerialNumber string `json:"serialNumber,omitempty"`
18+ Version int `json:"version"`
19+ Metadata SBOMMetadata `json:"metadata"`
2020 Components []SBOMComponent `json:"components"`
2121}
2222
2323// SBOMMetadata contains metadata about the SBOM.
2424type SBOMMetadata struct {
25- Timestamp string `json:"timestamp"`
26- Tools []SBOMTool `json:"tools,omitempty"`
25+ Timestamp string `json:"timestamp"`
26+ Tools []SBOMTool `json:"tools,omitempty"`
2727 Component * SBOMComponent `json:"component,omitempty"`
2828}
2929
@@ -36,11 +36,11 @@ type SBOMTool struct {
3636
3737// SBOMComponent represents a software component/dependency.
3838type SBOMComponent struct {
39- Type string `json:"type"`
40- Name string `json:"name"`
41- Version string `json:"version"`
42- PURL string `json:"purl,omitempty"`
43- Scope string `json:"scope,omitempty"`
39+ Type string `json:"type"`
40+ Name string `json:"name"`
41+ Version string `json:"version"`
42+ PURL string `json:"purl,omitempty"`
43+ Scope string `json:"scope,omitempty"`
4444}
4545
4646// GenerateSBOM produces a CycloneDX 1.5 SBOM from project dependency files.
0 commit comments