aboutsummaryrefslogtreecommitdiff
path: root/cisa/catalog.go
diff options
context:
space:
mode:
Diffstat (limited to 'cisa/catalog.go')
-rw-r--r--cisa/catalog.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cisa/catalog.go b/cisa/catalog.go
index 38116f6..4e9cc1a 100644
--- a/cisa/catalog.go
+++ b/cisa/catalog.go
@@ -3,6 +3,7 @@ package cisa
import (
"time"
"github.com/pablotron/cvez/feed"
+ "github.com/pablotron/cvez/rfc3339"
)
// Vulnerability entry.
@@ -20,7 +21,7 @@ type Vulnerability struct {
Name string `json:"vulnerabilityName"`
// Date vulnerability was added to catalog.
- DateAdded Date `json:"dateAdded"`
+ DateAdded rfc3339.Date `json:"dateAdded"`
// Short description of vulnerability.
ShortDescription string `json:"shortDescription"`
@@ -29,7 +30,7 @@ type Vulnerability struct {
RequiredAction string `json:"requiredAction"`
// Date that required action is due.
- DueDate Date `json:"dueDate"`
+ DueDate rfc3339.Date `json:"dueDate"`
}
// Known exploited vulnerabilities catalog.