aboutsummaryrefslogtreecommitdiff
path: root/spdx/v2_2/document.go
diff options
context:
space:
mode:
Diffstat (limited to 'spdx/v2_2/document.go')
-rw-r--r--spdx/v2_2/document.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/spdx/v2_2/document.go b/spdx/v2_2/document.go
index d4d4e50..31ac08b 100644
--- a/spdx/v2_2/document.go
+++ b/spdx/v2_2/document.go
@@ -53,13 +53,13 @@ type Document struct {
DocumentComment string `json:"comment,omitempty"`
CreationInfo *CreationInfo `json:"creationInfo"`
- Packages []*Package `json:"packages"`
- Files []*File `json:"files"`
- OtherLicenses []*OtherLicense `json:"hasExtractedLicensingInfos"`
- Relationships []*Relationship `json:"relationships"`
- Annotations []*Annotation `json:"annotations"`
- Snippets []Snippet `json:"snippets"`
+ Packages []*Package `json:"packages,omitempty"`
+ Files []*File `json:"files,omitempty"`
+ OtherLicenses []*OtherLicense `json:"hasExtractedLicensingInfos,omitempty"`
+ Relationships []*Relationship `json:"relationships,omitempty"`
+ Annotations []*Annotation `json:"annotations,omitempty"`
+ Snippets []Snippet `json:"snippets,omitempty"`
// DEPRECATED in version 2.0 of spec
- Reviews []*Review
+ Reviews []*Review `json:"-"`
}