aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--feed/v3version.go5
1 files changed, 4 insertions, 1 deletions
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: