diff options
Diffstat (limited to 'spdx/v2_2/creation_info.go')
-rw-r--r-- | spdx/v2_2/creation_info.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/spdx/v2_2/creation_info.go b/spdx/v2_2/creation_info.go new file mode 100644 index 0000000..b68dade --- /dev/null +++ b/spdx/v2_2/creation_info.go @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + +package v2_2 + +import "github.com/spdx/tools-golang/spdx/common" + +// CreationInfo is a Document Creation Information section of an +// SPDX Document for version 2.2 of the spec. +type CreationInfo struct { + // 2.7: License List Version + // Cardinality: optional, one + LicenseListVersion string `json:"licenseListVersion"` + + // 2.8: Creators: may have multiple keys for Person, Organization + // and/or Tool + // Cardinality: mandatory, one or many + Creators []common.Creator `json:"creators"` + + // 2.9: Created: data format YYYY-MM-DDThh:mm:ssZ + // Cardinality: mandatory, one + Created string `json:"created"` + + // 2.10: Creator Comment + // Cardinality: optional, one + CreatorComment string `json:"comment"` +} |