Closed jake-carpenter closed 4 years ago
Looks like this was a long-standing problem for anything not body-bound. Should be all good if you update to https://www.nuget.org/packages/HybridModelBinding/0.18.1-alpha.1
That version has solved the problem.
Thanks!
Maybe I'm trying to do this incorrectly, but when I try to bind query parameters to a collection it will bind great as long as there are multiple, but fails when there is a single value.
An example of the code I'm attempting to use:
Results:
https://localhost:5001/test?values=1&values=2 =>
{"values":[1,2]}
https://localhost:5001/test?values=1 =>{"values":null}