Skip to content

Support binding from types defined with an AsParameters attribute #46336

@captainsafia

Description

@captainsafia

Support binding parameters that are encapsulated in a type marked with an AsParameters type.

  • Supports existing parameter types (FromX, implicit route or query, implicit JSON body or service, form)
  • Support parameter types that need ParameterInfo (BindAsync and IEndpointParameterMetadataProvider)
  • Supports nullability in properties and constructor parameter
  • Emits diagnostics for malformed AsParameters type

Metadata

Metadata

Assignees

Labels

area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-rdgold-area-web-frameworks-do-not-use*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions