Skip to content

Commit

Permalink
Merge pull request #35 from Avanis-GmbH/omitempty
Browse files Browse the repository at this point in the history
Fixed invalid field should omit empty
  • Loading branch information
AntonSkrub authored Sep 13, 2024
2 parents 3bec421 + 284af79 commit 0c10172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type Rule struct {
EventActions []EventAction `json:"eventActions,omitempty"`
FlowSequences []FlowSequence `json:"flowSequences,omitempty"`
Id string `json:"id,omitempty"`
Invalid bool `json:"invalid"`
Invalid bool `json:"invalid,omitempty"`
ModuleTypes interface{} `json:"moduleTypes,omitempty"`
Name string `json:"name,omitempty"` // required
OrderPromotions []Promotion `json:"orderPromotions,omitempty"`
Expand Down

0 comments on commit 0c10172

Please sign in to comment.