xref: /aosp_15_r20/external/spdx-tools/spdx/v2_3/other_license.go (revision ba677afa8f67bb56cbc794f4d0e378e0da058e16)
1// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
2
3package v2_3
4
5// OtherLicense is an Other License Information section of an
6// SPDX Document for version 2.3 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