From aa21bbd6a24d38202c57d01382c20806752c7540 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 19 Feb 2022 16:23:22 -0500 Subject: feed/v3version.go: add 3.0 support --- feed/v3version.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'feed') diff --git a/feed/v3version.go b/feed/v3version.go index 537fecc..cbb9fac 100644 --- a/feed/v3version.go +++ b/feed/v3version.go @@ -11,7 +11,8 @@ import ( type V3Version byte const ( - V31 V3Version = iota // 3.1 + V30 V3Version = iota // 3.0 + V31 // 3.1 ) // Unmarshal CVSS V3 version from JSON. @@ -24,6 +25,8 @@ func (me *V3Version) UnmarshalJSON(b []byte) error { // check value switch s { + case "3.0": + *me = V30 case "3.1": *me = V31 default: -- cgit v1.2.3