Infer collection interfaces like IList come from the body in minimal actions #32376
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-minimal-actions
Controller-like actions for endpoint routing
Milestone
Currently, all interface parameters without an attribute are inferred to be services. I like this simplicity, but it might be more convenient for developers if we inferred collection interface types like
IList
andIEnumerable
are from the body instead. This complicates the mental model a bit and it's not that uncommon to consume multiple services usingIEnumerable
, but it's worth considering. See #31658 (comment)The text was updated successfully, but these errors were encountered: