Skip to content

Commit

Permalink
add omitempty flag
Browse files Browse the repository at this point in the history
  • Loading branch information
0Delta committed Jan 28, 2021
1 parent 0917dac commit 0257cce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions zendesk/macro.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import (
type Macro struct {
Actions []MacroAction `json:"actions"`
Active bool `json:"active"`
CreatedAt time.Time `json:"created_at"`
CreatedAt time.Time `json:"created_at,omitempty"`
Description interface{} `json:"description"`
ID int64 `json:"id"`
Position int `json:"position"`
ID int64 `json:"id,omitempty"`
Position int `json:"position,omitempty"`
Restriction interface{} `json:"restriction"`
Title string `json:"title"`
UpdatedAt time.Time `json:"updated_at"`
URL string `json:"url"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
URL string `json:"url,omitempty"`
}

// MacroAction is definition of what the macro does to the ticket
Expand Down

0 comments on commit 0257cce

Please sign in to comment.