Skip to content

Commit eb90ec8

Browse files
authored
fix: add omitempty annotation to messageStrings (#68)
change in #63 add messageStrings to the reportingDescriptor but didn't mark as being `omitempty`. This resolves that
1 parent a3ebc77 commit eb90ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v2/sarif/reporting_descriptor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type ReportingDescriptor struct {
1313
DeprecatedNames []string `json:"deprecatedNames,omitempty"`
1414
HelpURI *string `json:"helpUri,omitempty"`
1515
Help *MultiformatMessageString `json:"help,omitempty"`
16-
MessageStrings *MessageStrings `json:"messageStrings"`
16+
MessageStrings *MessageStrings `json:"messageStrings,omitempty"`
1717
Properties Properties `json:"properties,omitempty"`
1818
}
1919

0 commit comments

Comments
 (0)