Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested arrays in API responses #74

Closed
zneix opened this issue Jul 14, 2021 · 3 comments · Fixed by #75
Closed

Nested arrays in API responses #74

zneix opened this issue Jul 14, 2021 · 3 comments · Fixed by #75
Labels
bug Something isn't working

Comments

@zneix
Copy link
Contributor

zneix commented Jul 14, 2021

When performing any API request, data array in returned body contains unnecessary array inside with the content, which I believe shouldn't be a case.
Expected behavior is to have the response looking as close to the official API response, with just one array of objects.

Example (tcurl is an alias for curl <headers with my credentials> $@):
forsen in the background

I'd want the data array in response of twitch-cli, to look just like data array in the API call in the example shown above.

@lleadbet
Copy link
Contributor

What version are you running on?

@lleadbet lleadbet added the bug Something isn't working label Jul 14, 2021
@zneix
Copy link
Contributor Author

zneix commented Jul 14, 2021

What version are you running on?

I use AUR package that I package myself, version twitch-cli-git r245.daa4458-1 - commit daa4458 (latest main branch as of right now).

@lleadbet
Copy link
Contributor

Got it; let me get a fix pushed into main.

lleadbet pushed a commit that referenced this issue Jul 14, 2021
@lleadbet lleadbet mentioned this issue Jul 14, 2021
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants