From 38b50703241eda3e027d08d1d46be8a1056a2dd6 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Mon, 21 Feb 2022 19:54:42 +0100 Subject: [PATCH] Add json:omitempty to Suppression fields (#42) --- sarif/suppression.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sarif/suppression.go b/sarif/suppression.go index 008a312..80f9ccb 100644 --- a/sarif/suppression.go +++ b/sarif/suppression.go @@ -3,11 +3,11 @@ package sarif // Suppression ... type Suppression struct { PropertyBag - Kind string `json:"kind"` - Status *string `json:"status"` - Location *Location `json:"location"` - Guid *string `json:"guid"` - Justification *string `json:"justification"` + Kind string `json:"kind,omitempty"` + Status *string `json:"status,omitempty"` + Location *Location `json:"location,omitempty"` + Guid *string `json:"guid,omitempty"` + Justification *string `json:"justification,omitempty"` } // NewSuppression ...