1*ba677afaSXin Li// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 2*ba677afaSXin Li 3*ba677afaSXin Lipackage v2_1 4*ba677afaSXin Li 5*ba677afaSXin Liimport "github.com/spdx/tools-golang/spdx/common" 6*ba677afaSXin Li 7*ba677afaSXin Li// Annotation is an Annotation section of an SPDX Document for version 2.1 of the spec. 8*ba677afaSXin Litype Annotation struct { 9*ba677afaSXin Li // 8.1: Annotator 10*ba677afaSXin Li // Cardinality: conditional (mandatory, one) if there is an Annotation 11*ba677afaSXin Li Annotator common.Annotator `json:"annotator"` 12*ba677afaSXin Li 13*ba677afaSXin Li // 8.2: Annotation Date: YYYY-MM-DDThh:mm:ssZ 14*ba677afaSXin Li // Cardinality: conditional (mandatory, one) if there is an Annotation 15*ba677afaSXin Li AnnotationDate string `json:"annotationDate"` 16*ba677afaSXin Li 17*ba677afaSXin Li // 8.3: Annotation Type: "REVIEW" or "OTHER" 18*ba677afaSXin Li // Cardinality: conditional (mandatory, one) if there is an Annotation 19*ba677afaSXin Li AnnotationType string `json:"annotationType"` 20*ba677afaSXin Li 21*ba677afaSXin Li // 8.4: SPDX Identifier Reference 22*ba677afaSXin Li // Cardinality: conditional (mandatory, one) if there is an Annotation 23*ba677afaSXin Li // This field is not used in hierarchical data formats where the referenced element is clear, such as JSON or YAML. 24*ba677afaSXin Li AnnotationSPDXIdentifier common.DocElementID `json:"-"` 25*ba677afaSXin Li 26*ba677afaSXin Li // 8.5: Annotation Comment 27*ba677afaSXin Li // Cardinality: conditional (mandatory, one) if there is an Annotation 28*ba677afaSXin Li AnnotationComment string `json:"comment"` 29*ba677afaSXin Li} 30