Skip to content

Infer collection interfaces like IList come from the body in minimal actions #32376

@halter73

Description

@halter73

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 and IEnumerable are from the body instead. This complicates the mental model a bit and it's not that uncommon to consume multiple services using IEnumerable, but it's worth considering. See #31658 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-minimal-actionsController-like actions for endpoint routing

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions