Skip to content

Commit 1fd9caf

Browse files
committed
fix: make vuln rating score optional
fixes #25 BREAKING CHANGE: the type of `VulnerabilityRating.Score` changed from `float64` to `*float64`. Signed-off-by: nscuro <nscuro@protonmail.com>
1 parent 6c388c4 commit 1fd9caf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cyclonedx.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ type VulnerabilityAnalysis struct {
634634

635635
type VulnerabilityRating struct {
636636
Source *Source `json:"source,omitempty" xml:"source,omitempty"`
637-
Score float64 `json:"score" xml:"score"`
637+
Score *float64 `json:"score,omitempty" xml:"score,omitempty"`
638638
Severity Severity `json:"severity,omitempty" xml:"severity,omitempty"`
639639
Method ScoringMethod `json:"method,omitempty" xml:"method,omitempty"`
640640
Vector string `json:"vector,omitempty" xml:"vector,omitempty"`

0 commit comments

Comments
 (0)