From 3f406b53bda8b5beb8b0929da3802a0368c13151 Mon Sep 17 00:00:00 2001 From: Skye Gill Date: Thu, 5 Jan 2023 17:04:45 +0000 Subject: [PATCH] fix: omitempty targeting field in Flag structure (#247) ## This PR Added omitempty to the json tags of the `targeting` field in the `Flag` structure. ### Related Issues Fixes #246 ### Notes ### Follow-up Tasks ### How to test 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"` }