Skip to content

Commit

Permalink
remove omitempty instruction for rules field (#39)
Browse files Browse the repository at this point in the history
this allows to show results without vulnerabilities / misconfigurations
  • Loading branch information
afdesk authored Dec 27, 2021
1 parent 3647f9f commit 0666226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/sarif/tool_component.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type ToolComponent struct {
Product *string `json:"product,omitempty"`
ProductSuite *string `json:"productSuite,omitempty"`
ReleaseDateUtc *time.Time `json:"releaseDateUtc,omitempty"`
Rules []*ReportingDescriptor `json:"rules,omitempty"`
Rules []*ReportingDescriptor `json:"rules"`
SemanticVersion *string `json:"semanticVersion,omitempty"`
ShortDescription *MultiformatMessageString `json:"shortDescription,omitempty"`
SupportedTaxonomies []*ToolComponentReference `json:"supportedTaxonomies,omitempty"`
Expand Down

0 comments on commit 0666226

Please sign in to comment.