diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-19 16:23:22 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-19 16:23:22 -0500 |
commit | aa21bbd6a24d38202c57d01382c20806752c7540 (patch) | |
tree | 455ed2988f9cf2ecbdc294c47d94e634d2aa989c /feed | |
parent | 609953a652699e15d0c66e954825bd6aee138798 (diff) | |
download | cvez-aa21bbd6a24d38202c57d01382c20806752c7540.tar.bz2 cvez-aa21bbd6a24d38202c57d01382c20806752c7540.zip |
feed/v3version.go: add 3.0 support
Diffstat (limited to 'feed')
-rw-r--r-- | feed/v3version.go | 5 |
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: |