You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ankitaSejal There is a mismatch with the struct field name and the url.Values name which is why it appears to not be working. It's getting a single value set by total cooincidence of how the code flows(which I will be looking into further to prevent future confusion).
The struct field name is PostIds but the url .Value name is PostIds[], hence the mismatch. The PostIds[n] syntax only works when an index is specified.
Adding the form field name like so should solve your issue OR changing the url.Value to drop the brackets []
Package version v3.1.4
Issue: Decoder picks only one value when the array is present in query params as Array[]=x&Array[]=y
Code sample, to showcase or reproduce:
The text was updated successfully, but these errors were encountered: