twitchdev / issues

Issue tracker for third party developers.
Apache License 2.0
73 stars 6 forks source link

extensions/live pagination inconsistent with the rest of helix #541

Open BarryCarlyon opened 2 years ago

BarryCarlyon commented 2 years ago

Brief description

https://dev.twitch.tv/docs/api/reference#get-extension-live-channels

Is inconsistent with the rest of helix, as pagination is a string instead of an object

How to reproduce

barrycarlyon@Robyn ~ % twitch api get 'extensions/live?extension_id=es7m79v91nz4xxhzljdl3rpg9m1iuz&first=2'
Error unmarshalling body: json: cannot unmarshal string into Go struct field APIResponse.pagination of type models.APIPagination%   

Expected behavior

Consistency with the rest of helix

Additional context or questions

It is documented as a string but as you can see it breaks the Twitch CLI

beheh commented 2 years ago

Kind of the same as #524, although there it is phrased as a documentation issue.