1// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 2 3package v2_2 4 5// OtherLicense is an Other License Information section of an 6// SPDX Document for version 2.2 of the spec. 7type OtherLicense struct { 8 // 10.1: License Identifier: "LicenseRef-[idstring]" 9 // Cardinality: conditional (mandatory, one) if license is not 10 // on SPDX License List 11 LicenseIdentifier string `json:"licenseId"` 12 13 // 10.2: Extracted Text 14 // Cardinality: conditional (mandatory, one) if there is a 15 // License Identifier assigned 16 ExtractedText string `json:"extractedText"` 17 18 // 10.3: License Name: single line of text or "NOASSERTION" 19 // Cardinality: conditional (mandatory, one) if license is not 20 // on SPDX License List 21 LicenseName string `json:"name,omitempty"` 22 23 // 10.4: License Cross Reference 24 // Cardinality: conditional (optional, one or many) if license 25 // is not on SPDX License List 26 LicenseCrossReferences []string `json:"seeAlsos,omitempty"` 27 28 // 10.5: License Comment 29 // Cardinality: optional, one 30 LicenseComment string `json:"comment,omitempty"` 31} 32