aboutsummaryrefslogtreecommitdiff
path: root/feed
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-19 16:22:58 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-19 16:22:58 -0500
commit609953a652699e15d0c66e954825bd6aee138798 (patch)
tree6ed4b8dc4863bb4a940b8f23cd34c7b160b92025 /feed
parent5eaa03b404b574a7a2719c60eef09dfa48553094 (diff)
downloadcvez-609953a652699e15d0c66e954825bd6aee138798.tar.bz2
cvez-609953a652699e15d0c66e954825bd6aee138798.zip
feed/feed.go: make basemetrics optional
Diffstat (limited to 'feed')
-rw-r--r--feed/feed.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/feed/feed.go b/feed/feed.go
index bdf260c..7f1f9e0 100644
--- a/feed/feed.go
+++ b/feed/feed.go
@@ -209,10 +209,10 @@ type BaseMetricV2 struct {
// Item impact
type Impact struct {
// CVSS V3 base metrics
- BaseMetricV3 BaseMetricV3 `json:"baseMetricV3"`
+ BaseMetricV3 *BaseMetricV3 `json:"baseMetricV3"`
// CVSS V2 base metrics
- BaseMetricV2 BaseMetricV2 `json:"baseMetricV2"`
+ BaseMetricV2 *BaseMetricV2 `json:"baseMetricV2"`
}
// CVE feed item