Skip to content

Commit

Permalink
example7: spdx3.0: Modifications to schema
Browse files Browse the repository at this point in the history
- Remove "createdUsing" as these files are manually created
- "rootElement" is a list
- "element" in the SBOM element is a list of all elements in the
  SBOM

Signed-off-by: Nisha Kumar <[email protected]>
  • Loading branch information
nishakm committed Jun 12, 2024
1 parent bdb0847 commit 0caaec3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
12 changes: 8 additions & 4 deletions software/example7/spdx3.0/example7-go-module.spdx.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
"createdBy": [
"urn:uuid:cf7dddac-8ce5-4a16-8860-ee255be7b4c8"
],
"createdUsing": [
"manual"
],
"comment": "All objects within the graph will have this same CreationInfo"
},
{
Expand All @@ -54,6 +51,11 @@
"rootElement": [
"urn:uuid:a9f18ff3-17fa-419d-8966-abe4b992312b"
]
"element": [
"urn:uuid:cf7dddac-8ce5-4a16-8860-ee255be7b4c8",
"urn:uuid:a9f18ff3-17fa-419d-8966-abe4b992312b",
"urn:uuid:d8bfb4bd-f3b9-4d5e-b83d-dd48038ecfde",
]
},
{
"spdxId": "urn:uuid:b61745ef-59c7-4804-878d-fccbe455bd80",
Expand All @@ -66,7 +68,9 @@
"software"
],
"dataLicense": "CC0-1.0",
"rootElement": "urn:uuid:711c6f39-6c80-494e-b848-1c01e8962345"
"rootElement": [
"urn:uuid:711c6f39-6c80-494e-b848-1c01e8962345"
]
}
]
}
10 changes: 6 additions & 4 deletions software/example7/spdx3.0/example7-golang.spdx.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
"createdBy": [
"urn:uuid:cc81c9c0-c466-4e22-b3f6-945a65f5d07b"
],
"createdUsing": [
"manual"
],
"comment": "All objects within the graph will have this same CreationInfo"
},
{
Expand Down Expand Up @@ -82,6 +79,9 @@
"urn:uuid:a9f18ff3-17fa-419d-8966-abe4b992312b"
],
"element": [
"urn:uuid:a5d2b614-1c0a-477d-b1fc-dc391f2c1c6d",
"urn:uuid:cc81c9c0-c466-4e22-b3f6-945a65f5d07b",
"urn:uuid:a9f18ff3-17fa-419d-8966-abe4b992312b",
"urn:uuid:3b2939bf-fcce-4617-a06f-115168870b95",
"urn:uuid:92c6754b-d6e9-48b7-8b86-54fdc89995a6"
]
Expand All @@ -97,7 +97,9 @@
"software"
],
"dataLicense": "CC0-1.0",
"rootElement": "urn:uuid:d523d308-8348-4051-85ea-a67a14978fad"
"rootElement": [
"urn:uuid:d523d308-8348-4051-85ea-a67a14978fad"
]
}
]
}

0 comments on commit 0caaec3

Please sign in to comment.