Skip to content

Commit

Permalink
Make color annotation optional / omitempty
Browse files Browse the repository at this point in the history
  • Loading branch information
evanfuller authored and jomei committed Sep 3, 2023
1 parent 28cd444 commit 3306ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ type Annotations struct {
Strikethrough bool `json:"strikethrough"`
Underline bool `json:"underline"`
Code bool `json:"code"`
Color Color `json:"color"`
Color Color `json:"color,omitempty"`
}

type RelationObject struct {
Expand Down

0 comments on commit 3306ef9

Please sign in to comment.