Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rafikiassumani-msft opened this issue Aug 6, 2021 · 0 comments · Fixed by #35359
Assignees
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc feature-minimal-actions Controller-like actions for endpoint routing old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Milestone

Comments

@rafikiassumani-msft
Copy link
Contributor

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.

@rafikiassumani-msft rafikiassumani-msft added feature-minimal-actions Controller-like actions for endpoint routing old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels labels Aug 6, 2021
@rafikiassumani-msft rafikiassumani-msft added this to the 6.0-rc2 milestone Aug 6, 2021
pranavkm added a commit that referenced this issue Aug 19, 2021
…tes with a minimal action delegate (#35359)

* [x] Complain when using MVC binding attributes with minimal action

Fixes #35088
BrennanConroy pushed a commit that referenced this issue Aug 19, 2021
…tes with a minimal action delegate (#35359)

* [x] Complain when using MVC binding attributes with minimal action

Fixes #35088
wtgodbe pushed a commit that referenced this issue Aug 19, 2021
…tes with a minimal action delegate (#35359) (#35480)

* [x] Complain when using MVC binding attributes with minimal action

Fixes #35088

Co-authored-by: Pranav K <[email protected]>
@ghost ghost locked as resolved and limited conversation to collaborators Sep 18, 2021
@amcasey amcasey added the area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc label Jun 2, 2023
3dots pushed a commit to 3dots/aspnetcore-Web.JS that referenced this issue Feb 19, 2024
…tes with a minimal action delegate (#35359)

* [x] Complain when using MVC binding attributes with minimal action

Fixes dotnet/aspnetcore#35088
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc feature-minimal-actions Controller-like actions for endpoint routing old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Projects
None yet
4 participants