Closed
Description
app.MapPost("/todos", (Todo? todo) => {
// ...
app.MapGet("/something", (IService? service) => {
// ...
In cases like the above, we could use the nullability of the Todo
and IService
parameters to determine weather to request body and service are optional.
See #31658 (comment)
Metadata
Metadata
Assignees
Labels
Work that is critical for the release, but we could probably ship withoutIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcThe work on this issue is blocked due to some dependencyThis issue represents an ask for new feature or an enhancement to an existing oneController-like actions for endpoint routingUp for grabs. We would accept a PR to help resolve this issue