Skip to content

Commit

Permalink
Changing to camelcase the json fields
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Garcia <algarcia@vmware.com>
  • Loading branch information
agarcia-oss committed Feb 29, 2024
1 parent 580958c commit 2ec9968
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions reporthandling/results/v1/reportsummary/datastructures.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,33 +80,33 @@ type PostureCounters struct {
}

type VulnerabilitySummary struct {
MapsSeverityToSummary MapsSeverityToSummary `json:"MapsSeverityToSummary"`
MapsSeverityToSummary MapsSeverityToSummary `json:"mapsSeverityToSummary"`
CVESummary []CVESummary `json:"CVEs"`
PackageScores PackageScores `json:"PackageScores"`
Images []string `json:"Images"`
PackageScores PackageScores `json:"packageScores"`
Images []string `json:"images"`
}

type MapsSeverityToSummary map[string]*SeveritySummary

type SeveritySummary struct {
NumberOfCVEs int `json:"NumberOfCVEs"`
NumberOfFixableCVEs int `json:"NumberOfFixableCVEs"`
NumberOfCVEs int `json:"numberOfCVEs"`
NumberOfFixableCVEs int `json:"numberOfFixableCVEs"`
}

type CVESummary struct {
Severity string `json:"Severity"`
ID string `json:"ID"`
Package string `json:"Package"`
Version string `json:"Version"`
FixVersions []string `json:"FixVersions"`
FixedState string `json:"FixedState"`
Severity string `json:"severity"`
ID string `json:"id"`
Package string `json:"package"`
Version string `json:"version"`
FixVersions []string `json:"fixVersions"`
FixedState string `json:"fixedState"`
}

type PackageScores map[string]*PackageSummary

type PackageSummary struct {
Name string `json:"Name"`
Version string `json:"Version"`
Score int `json:"Score"`
MapSeverityToCVEsNumber map[string]int `json:"MapSeverityToCVEsNumber"`
Name string `json:"name"`
Version string `json:"version"`
Score int `json:"score"`
MapSeverityToCVEsNumber map[string]int `json:"mapSeverityToCVEsNumber"`
}

0 comments on commit 2ec9968

Please sign in to comment.