From e8866b24b51014ff5e084bdc22f6f00b20955c9f Mon Sep 17 00:00:00 2001 From: nscuro Date: Tue, 14 Jun 2022 17:54:33 +0200 Subject: [PATCH] fix: timestamps are strings for `Vulnerability` Signed-off-by: nscuro --- vulnerability.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vulnerability.go b/vulnerability.go index 5f6e9cd..85b9cd7 100644 --- a/vulnerability.go +++ b/vulnerability.go @@ -18,8 +18,9 @@ type Vulnerability struct { Recommendation string `json:"recommendation"` References string `json:"references"` Credits string `json:"credits"` - Created int `json:"created"` - Published int `json:"published"` + Created string `json:"created"` + Published string `json:"published"` + Updated string `json:"updated"` CWE CWE `json:"cwe"` CWEs []CWE `json:"cwes"` CVSSV2BaseScore float64 `json:"cvssV2BaseScore"`