Skip to content

Commit

Permalink
fix: omitempty user
Browse files Browse the repository at this point in the history
  • Loading branch information
zaq1tomo authored and jomei committed Aug 11, 2022
1 parent 8220430 commit c08e0b7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ func (uc *UserClient) List(ctx context.Context, pagination *Pagination) (*UsersL
type UserType string

type User struct {
Object ObjectType `json:"object"`
Object ObjectType `json:"object,omitempty"`
ID UserID `json:"id"`
Type UserType `json:"type"`
Name string `json:"name"`
AvatarURL string `json:"avatar_url"`
Person *Person `json:"person"`
Bot *Bot `json:"bot"`
Type UserType `json:"type,omitempty"`
Name string `json:"name,omitempty"`
AvatarURL string `json:"avatar_url,omitempty"`
Person *Person `json:"person,omitempty"`
Bot *Bot `json:"bot,omitempty"`
}

type Person struct {
Expand Down

0 comments on commit c08e0b7

Please sign in to comment.