-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(1.6): fix json, xml labels on BOM.Definitions
Signed-off-by: Maximilian Combüchen <max.combuchen@snyk.io>
- Loading branch information
1 parent
6bae75a
commit 9332ca6
Showing
5 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
testdata/snapshots/cyclonedx-go-TestRoundTripJSON-func1-valid-definitions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.6", | ||
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79", | ||
"version": 1, | ||
"definitions": { | ||
"standards": [ | ||
{ | ||
"bom-ref": "std-ref-1", | ||
"name": "CycloneDX", | ||
"version": "1.6", | ||
"description": "A full-stack Bill of Materials standard that provides advanced supply chain capabilities for cyber risk reduction.", | ||
"owner": "OWASP", | ||
"externalReferences": [ | ||
{ | ||
"url": "https://cyclonedx.org", | ||
"type": "website" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
|
18 changes: 18 additions & 0 deletions
18
testdata/snapshots/cyclonedx-go-TestRoundTripXML-func1-valid-definitions.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.6" serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1"> | ||
<definitions> | ||
<standards> | ||
<standard bom-ref="std-ref-1"> | ||
<name>CycloneDX</name> | ||
<version>1.6</version> | ||
<description>A full-stack Bill of Materials standard that provides advanced supply chain capabilities for cyber risk reduction.</description> | ||
<owner>OWASP</owner> | ||
<externalReferences> | ||
<reference type="website"> | ||
<url>https://cyclonedx.org</url> | ||
</reference> | ||
</externalReferences> | ||
</standard> | ||
</standards> | ||
</definitions> | ||
</bom> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.6", | ||
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79", | ||
"version": 1, | ||
"definitions": { | ||
"standards": [ | ||
{ | ||
"bom-ref": "std-ref-1", | ||
"name": "CycloneDX", | ||
"version": "1.6", | ||
"description": "A full-stack Bill of Materials standard that provides advanced supply chain capabilities for cyber risk reduction.", | ||
"owner": "OWASP", | ||
"externalReferences": [ | ||
{ | ||
"type": "website", | ||
"url": "https://cyclonedx.org" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0"?> | ||
<bom serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.6"> | ||
<definitions> | ||
<standards> | ||
<standard bom-ref="std-ref-1"> | ||
<name>CycloneDX</name> | ||
<version>1.6</version> | ||
<description>A full-stack Bill of Materials standard that provides advanced supply chain capabilities for cyber risk reduction.</description> | ||
<owner>OWASP</owner> | ||
<externalReferences> | ||
<reference type="website"> | ||
<url>https://cyclonedx.org</url> | ||
</reference> | ||
</externalReferences> | ||
</standard> | ||
</standards> | ||
</definitions> | ||
</bom> |