Minimal APIs doesn't support binding to StringValues from query or headers #36726
Labels
area-web-frameworks
Cost:S
Work that requires one engineer up to 1 week
feature-minimal-actions
Controller-like actions for endpoint routing
Priority:2
Work that is important, but not critical for the release
triage-focus
Add this label to flag the issue for focus at triage
Milestone
davidfowl commentedSep 19, 2021
•
edited
Describe the bug
Parameter binding doesn't support StringValues (which is ASP.NET Core's native representation of both query string and header values).
To Reproduce
OR
Exceptions (if any)
The first fails parameter binding things that
StringValues
is a body parameter.When adding
[FromQuery]
, it also fails but it's becauseStringValues
doesn't have aTryParse
method:It feels bad that our native representation doesn't work...
The text was updated successfully, but these errors were encountered: