-
Couldn't load subscription status.
- Fork 727
Align SPDX export more with SPDX 2.2 specification #743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,7 +29,7 @@ func Test_Originator(t *testing.T) { | |
| }, | ||
| }, | ||
| }, | ||
| expected: "auth1", | ||
| expected: "Person: auth1", | ||
| }, | ||
| { | ||
| name: "from npm", | ||
|
|
@@ -38,7 +38,7 @@ func Test_Originator(t *testing.T) { | |
| Author: "auth", | ||
| }, | ||
| }, | ||
| expected: "auth", | ||
| expected: "Person: auth", | ||
| }, | ||
| { | ||
| name: "from apk", | ||
|
|
@@ -47,7 +47,7 @@ func Test_Originator(t *testing.T) { | |
| Maintainer: "auth", | ||
| }, | ||
| }, | ||
| expected: "auth", | ||
| expected: "Person: auth", | ||
| }, | ||
| { | ||
| name: "from python - just name", | ||
|
|
@@ -56,7 +56,7 @@ func Test_Originator(t *testing.T) { | |
| Author: "auth", | ||
| }, | ||
| }, | ||
| expected: "auth", | ||
| expected: "Person: auth", | ||
| }, | ||
| { | ||
| name: "from python - just email", | ||
|
|
@@ -65,7 +65,7 @@ func Test_Originator(t *testing.T) { | |
| AuthorEmail: "[email protected]", | ||
| }, | ||
| }, | ||
| expected: "[email protected]", | ||
| expected: "Person: [email protected]", | ||
| }, | ||
| { | ||
| name: "from python - both name and email", | ||
|
|
@@ -75,7 +75,7 @@ func Test_Originator(t *testing.T) { | |
| AuthorEmail: "[email protected]", | ||
| }, | ||
| }, | ||
| expected: "auth <[email protected]>", | ||
| expected: "Person: auth ([email protected])", | ||
| }, | ||
| { | ||
| name: "from rpm", | ||
|
|
@@ -84,7 +84,7 @@ func Test_Originator(t *testing.T) { | |
| Vendor: "auth", | ||
| }, | ||
| }, | ||
| expected: "auth", | ||
| expected: "Organization: auth", | ||
| }, | ||
| { | ||
| name: "from dpkg", | ||
|
|
@@ -93,7 +93,7 @@ func Test_Originator(t *testing.T) { | |
| Maintainer: "auth", | ||
| }, | ||
| }, | ||
| expected: "auth", | ||
| expected: "Person: auth", | ||
| }, | ||
| { | ||
| // note: since this is an optional field, no value is preferred over NONE or NOASSERTION | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ package model | |
| type Element struct { | ||
| SPDXID string `json:"SPDXID"` | ||
| // Identify name of this SpdxElement. | ||
| Name string `json:"name"` | ||
| Name string `json:"name,omitempty"` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if this will have other adverse effects since it is used by things such as spdx22json.Package .Item.Element but not allowed in spdx22json.File, something like this is needed. |
||
| // Relationships referenced in the SPDX document | ||
| Relationships []Relationship `json:"relationships,omitempty"` | ||
| // Provide additional information about an SpdxElement. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this also be
Person:?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we won't be able to tell 100% of the time (org is a good guess)