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