Skip to content

Commit ad70791

Browse files
committed
refactor: rename CWEs field to CWEIDs in VulnerabilityBlob for clarity Signed-off-by: Hasnat Bashir <[email protected]>
Signed-off-by: Hasnat Bashir <[email protected]>
1 parent 2a30312 commit ad70791

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grype/db/v6/blobs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ type VulnerabilityBlob struct {
2727
// Severities is a list of severity indications (quantitative or qualitative) for the vulnerability
2828
Severities []Severity `json:"severities,omitempty"`
2929

30-
// CWEs is a list of Common Weakness Enumeration (CWE) identifiers that classify the type of vulnerability
31-
CWEs []string `json:"cwes,omitempty"`
30+
// CWEIDs is a list of Common Weakness Enumeration (CWE) identifiers that classify the type of vulnerability
31+
CWEIDs []string `json:"cweIds,omitempty"`
3232
}
3333

3434
func (v VulnerabilityBlob) String() string {

0 commit comments

Comments
 (0)