Topic | Value |
---|---|
Id | ASP003 |
Severity | Warning |
Enabled | True |
Category | AspNetCoreAnalyzers.Routing |
Code | AttributeAnalyzer |
Parameter type does not match the type specified by the name specified by the route parameter.
ADD MOTIVATION HERE
ADD HOW TO FIX VIOLATIONS HERE
Configure the severity per project, for more info see MSDN.
#pragma warning disable ASP003 // Parameter type does not match the type specified by the name specified by the route parameter
Code violating the rule here
#pragma warning restore ASP003 // Parameter type does not match the type specified by the name specified by the route parameter
Or put this at the top of the file to disable all instances.
#pragma warning disable ASP003 // Parameter type does not match the type specified by the name specified by the route parameter
[System.Diagnostics.CodeAnalysis.SuppressMessage("AspNetCoreAnalyzers.Routing",
"ASP003:Parameter type does not match the type specified by the name specified by the route parameter",
Justification = "Reason...")]