From 1df878fdd228b1623e76d578b08ad623d76dfdc4 Mon Sep 17 00:00:00 2001 From: shubhamrasal Date: Tue, 27 Dec 2022 20:02:48 +0530 Subject: [PATCH] add template path in json output --- v2/pkg/output/output.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/pkg/output/output.go b/v2/pkg/output/output.go index 3510b765c..36723886e 100644 --- a/v2/pkg/output/output.go +++ b/v2/pkg/output/output.go @@ -82,7 +82,7 @@ type ResultEvent struct { // TemplateID is the ID of the template for the result. TemplateID string `json:"template-id"` // TemplatePath is the path of template - TemplatePath string `json:"-"` + TemplatePath string `json:"template-path,omitempty"` // Info contains information block of the template for the result. Info model.Info `json:"info,inline"` // MatcherName is the name of the matcher matched if any.