Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Add Extended OSV info

6 views
Skip to first unread message

celek ibm

unread,
Nov 7, 2023, 11:33:47 AM11/7/23
to clair-dev
I was looking at this 


And wanted to retrieve the Severity - not sure if the osv.go is the right place to code something like this 

```
default: adb := a.Database // check if Severity exists if so , use it var X map[string]json.RawMessage if err := json.Unmarshal([]byte(adb), &X); err != nil { continue } var str string if err := json.Unmarshal(X["Severity"], &str); err != nil { continue } else { proto.Severity = str proto.NormalizedSeverity, err = fromString(str) } continue }
```

Hank Donnay

unread,
Nov 8, 2023, 7:20:50 PM11/8/23
to clai...@googlegroups.com
Yes, I think that's the right place to do something like that.

--
hank

Reply all
Reply to author
Forward
0 new messages