Skip to content

Commit

Permalink
change SharedListResponse TotalItems, TotalPages from string to int; …
Browse files Browse the repository at this point in the history
…Error: json: cannot unmarshal number into Go struct field ListSubscriptionPlansResponse.total_items of type string (#166)

Co-authored-by: Moo <[email protected]>
  • Loading branch information
Fruchtgummi and rollingdrops authored Aug 25, 2020
1 parent 18b47a0 commit 761c20a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1204,8 +1204,8 @@ type (
}

SharedListResponse struct {
TotalItems string `json:"total_items,omitempty"`
TotalPages string `json:"total_pages,omitempty"`
TotalItems int `json:"total_items,omitempty"`
TotalPages int `json:"total_pages,omitempty"`
Links []Link `json:"links,omitempty"`
}
)
Expand Down

0 comments on commit 761c20a

Please sign in to comment.