aboutsummaryrefslogtreecommitdiff
path: root/spdx/v2_2
diff options
context:
space:
mode:
Diffstat (limited to 'spdx/v2_2')
-rw-r--r--spdx/v2_2/creation_info.go2
-rw-r--r--spdx/v2_2/package.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/spdx/v2_2/creation_info.go b/spdx/v2_2/creation_info.go
index d56d9a5..70e611f 100644
--- a/spdx/v2_2/creation_info.go
+++ b/spdx/v2_2/creation_info.go
@@ -22,5 +22,5 @@ type CreationInfo struct {
// 6.10: Creator Comment
// Cardinality: optional, one
- CreatorComment string `json:"comment"`
+ CreatorComment string `json:"comment,omitempty"`
}
diff --git a/spdx/v2_2/package.go b/spdx/v2_2/package.go
index 2ca4cb1..53dd3a2 100644
--- a/spdx/v2_2/package.go
+++ b/spdx/v2_2/package.go
@@ -129,5 +129,5 @@ type PackageExternalReference struct {
// 7.22: Package External Reference Comment
// Cardinality: conditional (optional, one) for each External Reference
- ExternalRefComment string `json:"comment"`
+ ExternalRefComment string `json:"comment,omitempty"`
}