From ff6c7e0eae57b47d609ff73623d104afe3b8d3c1 Mon Sep 17 00:00:00 2001 From: Jason Biegel Date: Sat, 7 Sep 2024 15:51:05 -0400 Subject: [PATCH] make CampaignCreationSegmentOptions fields omitempty --- campaigns.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/campaigns.go b/campaigns.go index 95bddd3..f98a6d4 100644 --- a/campaigns.go +++ b/campaigns.go @@ -72,11 +72,11 @@ type CampaignCreationRecipients struct { } type CampaignCreationSegmentOptions struct { - SavedSegmentId int `json:"saved_segment_id"` - Match string `json:"match"` // one of CONDITION_MATCH_* + SavedSegmentId int `json:"saved_segment_id,omitempty"` + Match string `json:"match,omitempty"` // one of CONDITION_MATCH_* // this accepts various payloads. See http://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/#create-post_campaigns - Conditions interface{} `json:"conditions"` + Conditions interface{} `json:"conditions,omitempty"` } type InterestsCondition struct {