Skip to content

Commit

Permalink
Add omitempty to Option fields that are not required
Browse files Browse the repository at this point in the history
  • Loading branch information
shayanh authored and jomei committed Jul 23, 2021
1 parent cd9dc6d commit cd89b78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions property.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ func (p MultiSelectOptionsProperty) GetType() PropertyType {
}

type Option struct {
ID PropertyID
Name string `json:"name"`
Color Color `json:"color"`
ID PropertyID `json:"id,omitempty"`
Name string `json:"name"`
Color Color `json:"color,omitempty"`
}

type DateProperty struct {
Expand Down

0 comments on commit cd89b78

Please sign in to comment.