Skip to content

Commit

Permalink
fix: make vuln rating score optional
Browse files Browse the repository at this point in the history
fixes #25

BREAKING CHANGE: the type of `VulnerabilityRating.Score` changed from `float64` to `*float64`.

Signed-off-by: nscuro <[email protected]>
  • Loading branch information
nscuro committed Mar 19, 2022
1 parent 6c388c4 commit 1fd9caf
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 1fd9caf

Please sign in to comment.