We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92d0963 commit f6a01d4Copy full SHA for f6a01d4
src/Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer/ApiDescriptionExtensions.cs
@@ -39,7 +39,7 @@ public static bool IsDeprecated( this ApiDescription apiDescription )
39
var apiVersion = apiDescription.GetApiVersion();
40
var model = apiDescription.ActionDescriptor.GetApiVersionModel( Explicit | Implicit );
41
42
- return model.DeprecatedApiVersions.Contains( apiVersion );
+ return !model.IsApiVersionNeutral && model.DeprecatedApiVersions.Contains( apiVersion );
43
}
44
45
/// <summary>
0 commit comments