Skip to content

Commit

Permalink
feat: add omit empty to fields
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloromolini committed Sep 4, 2023
1 parent 7cdb5f2 commit c7149ad
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions zendesk/custom_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import (
)

type CustomObjectRecord struct {
Url string `json:"url"`
Name string `json:"name"`
ID string `json:"id"`
Url string `json:"url,omitempty"`
Name string `json:"name,omitempty"`
ID string `json:"id,omitempty"`
CustomObjectKey string `json:"custom_object_key"`
CustomObjectFields map[string]interface{} `json:"custom_object_fields" binding:"required"`
CreatedByUserID string `json:"created_by_user_id"`
UpdatedByUserID string `json:"updated_by_user_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
ExternalID string `json:"external_id"`
CreatedByUserID string `json:"created_by_user_id,omitempty"`
UpdatedByUserID string `json:"updated_by_user_id,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
ExternalID string `json:"external_id,omitempty"`
}

// CustomObjectAPI an interface containing all custom object related methods
Expand Down

0 comments on commit c7149ad

Please sign in to comment.