Skip to content

Create an Analyzer to help users understand acceptable attributes for Minimal APIs #35088

@rafikiassumani-msft

Description

@rafikiassumani-msft

Is your feature request related to a problem? Please describe.

We would like to help the user understands which attributes are allowed for Minimal Actions during compile time. see example below for Bind Attribute:

  app.MapGet("/user", ([Bind("FirstName,LastName")] User user) => $"username {user.FirstName}");

Describe the solution you'd like

Create an Analyzer to help the user understands which attributes are supported for Minimal APIs.

Additional context

See above.

Metadata

Metadata

Labels

area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-minimal-actionsController-like actions for endpoint routingold-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

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions