aqueduct icon indicating copy to clipboard operation
aqueduct copied to clipboard

Fixing the way aqueduct TestRequest serializes list query parameters

Open Reductions opened this issue 4 years ago • 2 comments

Up until now list query parameters were serialized in such a way:

url?query=[1, 2]

This is not the way aqueduct expects list parameters to be sent with that pull request the way lists are serialized is:

url?query=1&query=2

Reductions avatar Oct 01 '20 07:10 Reductions

@Reductions I was trying to write a test like

harness.publicAgent.get("/search", query: {"query": "1", "query": "2"});

But soon realized that it's impossible do that in dart with the map containing duplicate keys. would this PR fix it? where i would be able to write

harness.publicAgent.get("/search", query: {"query": ["1", "2"]});

ali-thowfeek avatar Feb 26 '21 18:02 ali-thowfeek

Yes it would. But it would not be merged as the framework is no longer supported. Run away while you have an option.

Reductions avatar Feb 27 '21 11:02 Reductions