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
If you have an action that specifies an array param, you're not able to build a route from that action.
classReports::Query < ApiAction
param codes : Array(String)
get "/reports/query"do
results =ReportQuery.new.codes(codes)
json(ReportSerializer.for_collection(results))
endend# then in your spec for this
it "doesn't work"do
client =ApiClient.new
response = client.exec(Reports::Query.with(codes: ["a", "b", "c"]))
response.status_code.should eq(200) # but it's actually 400 hereend
If you have an action that specifies an array param, you're not able to build a route from that action.
The route that's built looks more like
Which basically looks like
The text was updated successfully, but these errors were encountered: