From 761c20a4ed7990a2f61e5f63902bf2a5e39c4f56 Mon Sep 17 00:00:00 2001 From: Moo Date: Tue, 25 Aug 2020 18:20:11 +0200 Subject: [PATCH] change SharedListResponse TotalItems, TotalPages from string to int; Error: json: cannot unmarshal number into Go struct field ListSubscriptionPlansResponse.total_items of type string (#166) Co-authored-by: Moo --- types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.go b/types.go index 140b104..11bdf09 100644 --- a/types.go +++ b/types.go @@ -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"` } )