Also set omitempty on conditions

This commit is contained in:
Neil Alexander 2022-02-18 17:34:05 +00:00
parent 6d63096256
commit 0d928c6d7a
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -42,7 +42,7 @@ type Rule struct {
// Conditions provide the rule's conditions for OverrideKind and // Conditions provide the rule's conditions for OverrideKind and
// UnderrideKind. Not allowed for other kinds. // 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 // Pattern is the body pattern to match for ContentKind. Required
// for that kind. The interpretation is the same as that of // for that kind. The interpretation is the same as that of