diff options
Diffstat (limited to 'spdx/v2_1/document.go')
-rw-r--r-- | spdx/v2_1/document.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spdx/v2_1/document.go b/spdx/v2_1/document.go index 21533a0..81738ff 100644 --- a/spdx/v2_1/document.go +++ b/spdx/v2_1/document.go @@ -53,12 +53,12 @@ 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 `json:"-"` |