diff options
Diffstat (limited to 'spdx/v2_2/file.go')
-rw-r--r-- | spdx/v2_2/file.go | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/spdx/v2_2/file.go b/spdx/v2_2/file.go index 43c2608..150e79f 100644 --- a/spdx/v2_2/file.go +++ b/spdx/v2_2/file.go @@ -6,61 +6,61 @@ import "github.com/spdx/tools-golang/spdx/common" // File is a File section of an SPDX Document for version 2.2 of the spec. type File struct { - // 4.1: File Name + // 8.1: File Name // Cardinality: mandatory, one FileName string `json:"fileName"` - // 4.2: File SPDX Identifier: "SPDXRef-[idstring]" + // 8.2: File SPDX Identifier: "SPDXRef-[idstring]" // Cardinality: mandatory, one FileSPDXIdentifier common.ElementID `json:"SPDXID"` - // 4.3: File Types + // 8.3: File Types // Cardinality: optional, multiple FileTypes []string `json:"fileTypes,omitempty"` - // 4.4: File Checksum: may have keys for SHA1, SHA256 and/or MD5 + // 8.4: File Checksum: may have keys for SHA1, SHA256 and/or MD5 // Cardinality: mandatory, one SHA1, others may be optionally provided Checksums []common.Checksum `json:"checksums"` - // 4.5: Concluded License: SPDX License Expression, "NONE" or "NOASSERTION" + // 8.5: Concluded License: SPDX License Expression, "NONE" or "NOASSERTION" // Cardinality: mandatory, one LicenseConcluded string `json:"licenseConcluded"` - // 4.6: License Information in File: SPDX License Expression, "NONE" or "NOASSERTION" + // 8.6: License Information in File: SPDX License Expression, "NONE" or "NOASSERTION" // Cardinality: mandatory, one or many LicenseInfoInFiles []string `json:"licenseInfoInFiles"` - // 4.7: Comments on License + // 8.7: Comments on License // Cardinality: optional, one LicenseComments string `json:"licenseComments,omitempty"` - // 4.8: Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION" + // 8.8: Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION" // Cardinality: mandatory, one FileCopyrightText string `json:"copyrightText"` // DEPRECATED in version 2.1 of spec - // 4.9-4.11: Artifact of Project variables (defined below) + // 8.9-8.11: Artifact of Project variables (defined below) // Cardinality: optional, one or many ArtifactOfProjects []*ArtifactOfProject `json:"-"` - // 4.12: File Comment + // 8.12: File Comment // Cardinality: optional, one FileComment string `json:"comment,omitempty"` - // 4.13: File Notice + // 8.13: File Notice // Cardinality: optional, one FileNotice string `json:"noticeText,omitempty"` - // 4.14: File Contributor + // 8.14: File Contributor // Cardinality: optional, one or many FileContributors []string `json:"fileContributors,omitempty"` - // 4.15: File Attribution Text + // 8.15: File Attribution Text // Cardinality: optional, one or many FileAttributionTexts []string `json:"attributionTexts,omitempty"` // DEPRECATED in version 2.0 of spec - // 4.16: File Dependencies + // 8.16: File Dependencies // Cardinality: optional, one or many FileDependencies []string `json:"-"` @@ -74,21 +74,21 @@ type File struct { } // ArtifactOfProject is a DEPRECATED collection of data regarding -// a Package, as defined in sections 4.9-4.11 in version 2.2 of the spec. +// a Package, as defined in sections 8.9-8.11 in version 2.2 of the spec. type ArtifactOfProject struct { // DEPRECATED in version 2.1 of spec - // 4.9: Artifact of Project Name + // 8.9: Artifact of Project Name // Cardinality: conditional, required if present, one per AOP Name string // DEPRECATED in version 2.1 of spec - // 4.10: Artifact of Project Homepage: URL or "UNKNOWN" + // 8.10: Artifact of Project Homepage: URL or "UNKNOWN" // Cardinality: optional, one per AOP HomePage string // DEPRECATED in version 2.1 of spec - // 4.11: Artifact of Project Uniform Resource Identifier + // 8.11: Artifact of Project Uniform Resource Identifier // Cardinality: optional, one per AOP URI string } |