DotNetAnalyzers / AspNetCoreAnalyzers

MIT License
62 stars 4 forks source link

ASP007 and ASP005 when using apiVersion in controller route #107

Open mahgo opened 2 years ago

mahgo commented 2 years ago

I have this route on my controller [Route("{v:apiVersion}/[controller]")], as per https://www.c-sharpcorner.com/article/api-versioning-in-asp-net-core-with-three-different-ways/

It's getting ASP007 and ASP005 (I already have ASP012 turned off). Is there any way to solve this other than suppressing it?