Vex::Vulnerability
Inherits JSON::Serializable < Reference < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(name : String | Nil = nil, id : String | Nil = nil, description : String | Nil = nil, aliases : Array(String) | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
==(other : self)
Returns true if this reference is the same as other. Invokes same?.
aliases
Sourcedescription
Sourcehash(hasher)
See Object#hash(hasher)
id
Sourcename
Sourcevalid?
Sourcevalidate
Returns spec-violation errors. Empty array means valid.
Spec: name is the only required field on a vulnerability.
warnings
Non-fatal spec advisories. The spec recommends an IRI for @id
(e.g. https://nvd.nist.gov/vuln/detail/CVE-X), but tolerates other
producers. A bare CVE name in the @id slot is a common mistake;
the warning surfaces it without failing the document.