Skip to content

Commit

Permalink
Merge pull request #26 from CycloneDX/issue-25
Browse files Browse the repository at this point in the history
fix: make vuln rating score optional
  • Loading branch information
nscuro authored Mar 19, 2022
2 parents 6c388c4 + 1fd9caf commit 404f9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyclonedx.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ type VulnerabilityAnalysis struct {

type VulnerabilityRating struct {
Source *Source `json:"source,omitempty" xml:"source,omitempty"`
Score float64 `json:"score" xml:"score"`
Score *float64 `json:"score,omitempty" xml:"score,omitempty"`
Severity Severity `json:"severity,omitempty" xml:"severity,omitempty"`
Method ScoringMethod `json:"method,omitempty" xml:"method,omitempty"`
Vector string `json:"vector,omitempty" xml:"vector,omitempty"`
Expand Down

0 comments on commit 404f9a3

Please sign in to comment.