-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[Analyzer] Unused route parameter detection and fixer #44319
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
Comments
Thank you for submitting this for API review. This will be reviewed by @dotnet/aspnet-api-review at the next meeting of the ASP.NET Core API Review group. Please ensure you take a look at the API review process documentation and ensure that:
|
Thank you for submitting this for API review. This will be reviewed by @dotnet/aspnet-api-review at the next meeting of the ASP.NET Core API Review group. Please ensure you take a look at the API review process documentation and ensure that:
|
Double check it works with RequestDelegate overload. |
API Review Notes:
Category: Usage |
Background and Motivation
When adding a route parameter to a minimal API or action:
An analyzer and fixer can automate step 2.
Proposed API
An analyzer inspects the route for route parameters and the lambda/action parameters. If the route has a parameter that isn't present in the lambda/action then the analyzer will suggest a fix.
Usage Examples
Alternative Designs
Risks
The text was updated successfully, but these errors were encountered: