Skip to content

Commit

Permalink
Merge pull request #14 from maier/master
Browse files Browse the repository at this point in the history
[CIRC-4218] v0.6.9
  • Loading branch information
maier authored Oct 9, 2019
2 parents 8a23d1f + 51ecab1 commit e74997a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v0.6.9

* fix: contact_group.`alert_formats`, individual fields should be omitted if not set (was `string|null`, now `string|omit`)
* add: contact_group.`always_send_clear` attribute, bool
* add: contact_group.`group_type` attribute, string

# v0.6.8

* upd: force logging of json being sent to api
Expand Down
12 changes: 7 additions & 5 deletions contact_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import (

// ContactGroupAlertFormats define alert formats
type ContactGroupAlertFormats struct {
LongMessage *string `json:"long_message"` // string or null
LongSubject *string `json:"long_subject"` // string or null
LongSummary *string `json:"long_summary"` // string or null
ShortMessage *string `json:"short_message"` // string or null
ShortSummary *string `json:"short_summary"` // string or null
LongMessage *string `json:"long_message,omitempty"` // string - 2019-10-09 null no longer accepted, must be omitted if not set
LongSubject *string `json:"long_subject,omitempty"` // string - 2019-10-09 null no longer accepted, must be omitted if not set
LongSummary *string `json:"long_summary,omitempty"` // string - 2019-10-09 null no longer accepted, must be omitted if not set
ShortMessage *string `json:"short_message,omitempty"` // string - 2019-10-09 null no longer accepted, must be omitted if not set
ShortSummary *string `json:"short_summary,omitempty"` // string - 2019-10-09 null no longer accepted, must be omitted if not set
}

// ContactGroupContactsExternal external contacts
Expand Down Expand Up @@ -64,6 +64,8 @@ type ContactGroup struct {
Name string `json:"name,omitempty"` // string
Reminders []uint `json:"reminders,omitempty"` // [] len == 5
Tags []string `json:"tags,omitempty"` // [] len >= 0
AlwaysSendClear bool `json:"always_send_clear,omitempty"` // bool - new 2019-10-09
GroupType string `json:"group_type,omitempty"` // string - new 2019-10-09
}

// NewContactGroup returns a ContactGroup (with defaults, if applicable)
Expand Down

0 comments on commit e74997a

Please sign in to comment.