-
-
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: add bom-ref to OrganizationalEntity/Contact
Adds bom-ref to OrganizationalEntity and OrganizationalContact which was added in CycloneDX 1.5 Signed-off-by: Tim Pickles <[email protected]>
- Loading branch information
Showing
10 changed files
with
49 additions
and
9 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
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
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
"metadata": { | ||
"authors": [ | ||
{ | ||
"bom-ref": "author-1", | ||
"name": "Samantha Wright", | ||
"email": "[email protected]", | ||
"phone": "800-555-1212" | ||
|
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 |
---|---|---|
|
@@ -5,12 +5,14 @@ | |
"version": 1, | ||
"metadata": { | ||
"manufacture": { | ||
"bom-ref": "manufacture-1", | ||
"name": "Acme, Inc.", | ||
"url": [ | ||
"https://example.com" | ||
], | ||
"contact": [ | ||
{ | ||
"bom-ref": "contact-1", | ||
"name": "Acme Professional Services", | ||
"email": "[email protected]" | ||
} | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<bom xmlns="http://cyclonedx.org/schema/bom/1.6" serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1"> | ||
<metadata> | ||
<authors> | ||
<author> | ||
<author bom-ref="contact-1"> | ||
<name>Samantha Wright</name> | ||
<email>[email protected]</email> | ||
<phone>800-555-1212</phone> | ||
|
4 changes: 2 additions & 2 deletions
4
testdata/snapshots/cyclonedx-go-TestRoundTripXML-func1-valid-metadata-manufacture.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<?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"> | ||
<metadata> | ||
<manufacture> | ||
<manufacture bom-ref="manufacture-1"> | ||
<name>Acme, Inc.</name> | ||
<url>https://example.com</url> | ||
<contact> | ||
<contact bom-ref="contact-1"> | ||
<name>Acme Professional Services</name> | ||
<email>[email protected]</email> | ||
</contact> | ||
|
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
"metadata": { | ||
"authors": [ | ||
{ | ||
"bom-ref": "author-1", | ||
"name": "Samantha Wright", | ||
"email": "[email protected]", | ||
"phone": "800-555-1212" | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<bom serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.6"> | ||
<metadata> | ||
<authors> | ||
<author> | ||
<author bom-ref="contact-1"> | ||
<name>Samantha Wright</name> | ||
<email>[email protected]</email> | ||
<phone>800-555-1212</phone> | ||
|
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 |
---|---|---|
|
@@ -5,12 +5,14 @@ | |
"version": 1, | ||
"metadata": { | ||
"manufacture": { | ||
"bom-ref": "manufacture-1", | ||
"name": "Acme, Inc.", | ||
"url": [ | ||
"https://example.com" | ||
], | ||
"contact": [ | ||
{ | ||
"bom-ref": "contact-1", | ||
"name": "Acme Professional Services", | ||
"email": "[email protected]" | ||
} | ||
|
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<?xml version="1.0"?> | ||
<bom serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.6"> | ||
<metadata> | ||
<manufacture> | ||
<manufacture bom-ref="manufacture-1"> | ||
<name>Acme, Inc.</name> | ||
<url>https://example.com</url> | ||
<contact> | ||
<contact bom-ref="contact-1"> | ||
<name>Acme Professional Services</name> | ||
<email>[email protected]</email> | ||
</contact> | ||
|