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 <mri@robin-data.io>
This commit is contained in:
Moo 2020-08-25 18:20:11 +02:00 committed by GitHub
parent 18b47a0652
commit 761c20a4ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"`
}
)