From 0d928c6d7aabba311e5198afce0d77d6d93ca039 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 18 Feb 2022 17:34:05 +0000 Subject: [PATCH] Also set omitempty on conditions --- internal/pushrules/pushrules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pushrules/pushrules.go b/internal/pushrules/pushrules.go index 7f63b649c..358065ab6 100644 --- a/internal/pushrules/pushrules.go +++ b/internal/pushrules/pushrules.go @@ -42,7 +42,7 @@ type Rule struct { // Conditions provide the rule's conditions for OverrideKind and // UnderrideKind. Not allowed for other kinds. - Conditions []*Condition `json:"conditions"` + Conditions []*Condition `json:"conditions,omitempty"` // Pattern is the body pattern to match for ContentKind. Required // for that kind. The interpretation is the same as that of