-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider enhancements to MVC for a grow up story from minimal actions #33403
Comments
FYI @davidfowl / @halter73 |
Thanks for contacting us. We're moving this issue to the |
@pranavkm I moved the implicit services for MVC below the cutline. I think we should do the analyzer here that warns if you return an IResult from an MVC controller. |
@rafikiassumani-msft do you want to handle this in 6.0 or backlog? Up to you :) |
@brunolins16 it's about supporting https://docs.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-6.0#optional-parameters. Essentially make ` #nullable enable
public IActionResult Post(string? value); the same as #nullable disable
public IActionResult Post(string value = null); |
@pranavkm I thought it was already supported. Let me test it. Thanks. |
FromServices
for types that appear in DI #39667FromBody.AllowEmptyBehavior = Allow
based nullability information #39754FromServices
optionality based on nullability information #39757TryParse
as a way to bind primitives #39682Consider adding aEnableMinimalAPICompatibilityMode
toApiBehaviorOptions
so that controller actions behave like a minimal action.We'd likely have an option specifically for
FromServices
behavior rather than a globalEnableMinimalAPICompatibilityMode
The text was updated successfully, but these errors were encountered: