-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
array values are not parsing properly as per the documentation #214
Comments
For now, I can make that string manually with |
🎉 This issue has been resolved in version 1.10.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hi, First, thank you for the great work put in vue-api-query! In my opinion the old way ( |
There is this line where we are parsing the custom params payload with encode: false. However, if we pass an array, it won't stringy properly. For this, we need to pass an extra parameter.
will produce the output
"a=asdf&b=a,b"
as intended.But the current code only has
encode: false
as an option. Without the arrayFormat, we will get output something like this.Output:
"a=asdf&b[0]=a&b[1]=b"
link: https://github.com/robsontenorio/vue-api-query/blob/dev/src/Parser.js#L155
Hope the problem is clear.
The text was updated successfully, but these errors were encountered: