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
This is because Plug.Conn.fetch_query_params removes the "[]" part by grouping the property and returning an array of results. Following the example above, the result of this function would be %{ids: [1,2]} which causes an error, because in the Schema "ids[]" has been defined as a possible parameter and not "ids".
The text was updated successfully, but these errors were encountered:
We're running into this issue, too. It seems like array query params can't work correctly with the current implementation. Is there any way to get @DavidGonzalezPineiro's fix merged?
When validating the query params of an endpoint with parameters of type array we get a validation error:
Example:
Operation param defined as:
We get the following error:
This is because
Plug.Conn.fetch_query_params
removes the "[]" part by grouping the property and returning an array of results. Following the example above, the result of this function would be%{ids: [1,2]}
which causes an error, because in the Schema "ids[]" has been defined as a possible parameter and not "ids".The text was updated successfully, but these errors were encountered: