Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fixing some optional params: copyrightText, licenseListVersion, packageVerificationCode #215

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

Merged
merged 3 commits into from
May 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2 spdx/v2/v2_1/creation_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
type CreationInfo struct {
// 2.7: License List Version
// Cardinality: optional, one
LicenseListVersion string `json:"licenseListVersion"`
LicenseListVersion string `json:"licenseListVersion,omitempty"`

// 2.8: Creators: may have multiple keys for Person, Organization
// and/or Tool
Expand Down
2 changes: 1 addition & 1 deletion 2 spdx/v2/v2_1/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type Package struct {
IsFilesAnalyzedTagPresent bool `json:"-"`

// 3.9: Package Verification Code
PackageVerificationCode common.PackageVerificationCode `json:"packageVerificationCode"`
PackageVerificationCode common.PackageVerificationCode `json:"packageVerificationCode,omitempty"`

// 3.10: Package Checksum: may have keys for SHA1, SHA256 and/or MD5
// Cardinality: optional, one or many
Expand Down
2 changes: 1 addition & 1 deletion 2 spdx/v2/v2_2/creation_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
type CreationInfo struct {
// 6.7: License List Version
// Cardinality: optional, one
LicenseListVersion string `json:"licenseListVersion"`
LicenseListVersion string `json:"licenseListVersion,omitempty"`

// 6.8: Creators: may have multiple keys for Person, Organization
// and/or Tool
Expand Down
2 changes: 1 addition & 1 deletion 2 spdx/v2/v2_2/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type Package struct {
IsFilesAnalyzedTagPresent bool `json:"-"`

// 7.9: Package Verification Code
PackageVerificationCode common.PackageVerificationCode `json:"packageVerificationCode"`
PackageVerificationCode common.PackageVerificationCode `json:"packageVerificationCode,omitempty"`

// 7.10: Package Checksum: may have keys for SHA1, SHA256, SHA512 and/or MD5
// Cardinality: optional, one or many
Expand Down
2 changes: 1 addition & 1 deletion 2 spdx/v2/v2_3/creation_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
type CreationInfo struct {
// 6.7: License List Version
// Cardinality: optional, one
LicenseListVersion string `json:"licenseListVersion"`
LicenseListVersion string `json:"licenseListVersion,omitempty"`

// 6.8: Creators: may have multiple keys for Person, Organization
// and/or Tool
Expand Down
4 changes: 2 additions & 2 deletions 4 spdx/v2/v2_3/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ type Package struct {
PackageLicenseComments string `json:"licenseComments,omitempty"`

// 7.17: Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION"
// Cardinality: mandatory, one
PackageCopyrightText string `json:"copyrightText"`
// Cardinality: optional, zero or one
PackageCopyrightText string `json:"copyrightText,omitempty"`

// 7.18: Package Summary Description
// Cardinality: optional, one
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.