From 2adbd35407fd9a653213cc6412e2ca09f1899b9e Mon Sep 17 00:00:00 2001 From: Felix Ohnesorge Date: Wed, 3 Apr 2024 13:13:33 +0200 Subject: [PATCH] watchNames and patterns as string slices --- xray/services/report.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xray/services/report.go b/xray/services/report.go index 194b9ecdf..ee387f8ed 100644 --- a/xray/services/report.go +++ b/xray/services/report.go @@ -152,8 +152,8 @@ type LicensesFilter struct { type ViolationsFilter struct { Type string `json:"type,omitempty"` - WatchNames string `json:"watch_names,omitempty"` - WatchPatterns string `json:"watch_patterns,omitempty"` + WatchNames []string `json:"watch_names,omitempty"` + WatchPatterns []string `json:"watch_patterns,omitempty"` Component string `json:"component,omitempty"` Artifact string `json:"artifact,omitempty"` PolicyNames []string `json:"policy_names,omitempty"`