Skip to content

Commit 404f9a3

Browse files
authored
Merge pull request #26 from CycloneDX/issue-25
fix: make vuln rating score optional
2 parents 6c388c4 + 1fd9caf commit 404f9a3

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)