aboutsummaryrefslogtreecommitdiff
path: root/spdx/other_license.go
diff options
context:
space:
mode:
Diffstat (limited to 'spdx/other_license.go')
-rw-r--r--spdx/other_license.go22
1 files changed, 10 insertions, 12 deletions
diff --git a/spdx/other_license.go b/spdx/other_license.go
index a509c47..6e43676 100644
--- a/spdx/other_license.go
+++ b/spdx/other_license.go
@@ -5,57 +5,55 @@ package spdx
// OtherLicense2_1 is an Other License Information section of an
// SPDX Document for version 2.1 of the spec.
type OtherLicense2_1 struct {
-
// 6.1: License Identifier: "LicenseRef-[idstring]"
// Cardinality: conditional (mandatory, one) if license is not
// on SPDX License List
- LicenseIdentifier string
+ LicenseIdentifier string `json:"licenseId"`
// 6.2: Extracted Text
// Cardinality: conditional (mandatory, one) if there is a
// License Identifier assigned
- ExtractedText string
+ ExtractedText string `json:"extractedText"`
// 6.3: License Name: single line of text or "NOASSERTION"
// Cardinality: conditional (mandatory, one) if license is not
// on SPDX License List
- LicenseName string
+ LicenseName string `json:"name,omitempty"`
// 6.4: License Cross Reference
// Cardinality: conditional (optional, one or many) if license
// is not on SPDX License List
- LicenseCrossReferences []string
+ LicenseCrossReferences []string `json:"seeAlsos,omitempty"`
// 6.5: License Comment
// Cardinality: optional, one
- LicenseComment string
+ LicenseComment string `json:"comment,omitempty"`
}
// OtherLicense2_2 is an Other License Information section of an
// SPDX Document for version 2.2 of the spec.
type OtherLicense2_2 struct {
-
// 6.1: License Identifier: "LicenseRef-[idstring]"
// Cardinality: conditional (mandatory, one) if license is not
// on SPDX License List
- LicenseIdentifier string
+ LicenseIdentifier string `json:"licenseId"`
// 6.2: Extracted Text
// Cardinality: conditional (mandatory, one) if there is a
// License Identifier assigned
- ExtractedText string
+ ExtractedText string `json:"extractedText"`
// 6.3: License Name: single line of text or "NOASSERTION"
// Cardinality: conditional (mandatory, one) if license is not
// on SPDX License List
- LicenseName string
+ LicenseName string `json:"name,omitempty"`
// 6.4: License Cross Reference
// Cardinality: conditional (optional, one or many) if license
// is not on SPDX License List
- LicenseCrossReferences []string
+ LicenseCrossReferences []string `json:"seeAlsos,omitempty"`
// 6.5: License Comment
// Cardinality: optional, one
- LicenseComment string
+ LicenseComment string `json:"comment,omitempty"`
}