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
The uri_template gem, which hyperclient uses to build urls, implements RFC6570, that expands a parameter in the {?foo*} format as ?foo=a&foo=b&foo=c.
Unfortunately, faraday's default argument parser (Faraday::Utils.default_params_encoder) is set to theNestedParamsEncoder which only considers parameters to be arrays if they have [] in the key.
The result is that values for a parameter are dropped in this process:
The
uri_template
gem, which hyperclient uses to build urls, implements RFC6570, that expands a parameter in the{?foo*}
format as?foo=a&foo=b&foo=c
.Unfortunately, faraday's default argument parser (
Faraday::Utils.default_params_encoder
) is set to theNestedParamsEncoder
which only considers parameters to be arrays if they have[]
in the key.The result is that values for a parameter are dropped in this process:
And thus the resulting faraday request will be missing some of the values.
The solution is to use faraday's other parameter encoder (the
FlatParamsEncoder
).I'm working on a PR to fix this, but wanted to open the issue to have something to reference.
The text was updated successfully, but these errors were encountered: