From bbd18c58daba919550cf4228ad5eb4893ef18ea5 Mon Sep 17 00:00:00 2001 From: Skye Gill Date: Thu, 5 Jan 2023 12:05:10 +0000 Subject: [PATCH] fix: omitempty targeting field in Flag structure Signed-off-by: Skye Gill --- pkg/eval/json_evaluator_model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/eval/json_evaluator_model.go b/pkg/eval/json_evaluator_model.go index bda443498..d85559674 100644 --- a/pkg/eval/json_evaluator_model.go +++ b/pkg/eval/json_evaluator_model.go @@ -68,6 +68,6 @@ type Flag struct { State string `json:"state"` DefaultVariant string `json:"defaultVariant"` Variants map[string]any `json:"variants"` - Targeting json.RawMessage `json:"targeting"` + Targeting json.RawMessage `json:"targeting,omitempty"` Source string `json:"source"` }