From 0433686afb9666d7eae7d0bec12b34075a389d49 Mon Sep 17 00:00:00 2001 From: Tomo Masakura Date: Thu, 24 Aug 2023 13:18:34 +0900 Subject: [PATCH] support messageStrings property * https://docs.oasis-open.org/sarif/sarif/v2.1.0/csprd01/sarif-v2.1.0-csprd01.html#_Toc10541285 --- v2/sarif/message_strings.go | 3 +++ v2/sarif/reporting_descriptor.go | 1 + 2 files changed, 4 insertions(+) create mode 100644 v2/sarif/message_strings.go diff --git a/v2/sarif/message_strings.go b/v2/sarif/message_strings.go new file mode 100644 index 0000000..42f56f1 --- /dev/null +++ b/v2/sarif/message_strings.go @@ -0,0 +1,3 @@ +package sarif + +type MessageStrings map[string]MultiformatMessageString diff --git a/v2/sarif/reporting_descriptor.go b/v2/sarif/reporting_descriptor.go index ba9445d..5094f48 100644 --- a/v2/sarif/reporting_descriptor.go +++ b/v2/sarif/reporting_descriptor.go @@ -10,6 +10,7 @@ type ReportingDescriptor struct { DefaultConfiguration *ReportingConfiguration `json:"defaultConfiguration,omitempty"` HelpURI *string `json:"helpUri,omitempty"` Help *MultiformatMessageString `json:"help,omitempty"` + MessageStrings *MessageStrings `json:"messageStrings"` Properties Properties `json:"properties,omitempty"` }