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 60f20ae commit 6610886Copy full SHA for 6610886
src/AspNetCore/WebApi/src/Asp.Versioning.Mvc.ApiExplorer/ApiVersionParameterDescriptionContext.cs
@@ -185,14 +185,11 @@ protected virtual void UpdateUrlSegment()
185
parameter.RouteInfo.DefaultValue = parameter.DefaultValue;
186
}
187
188
- if ( parameter.ParameterDescriptor == null )
+ parameter.ParameterDescriptor ??= new()
189
{
190
- parameter.ParameterDescriptor = new()
191
- {
192
- Name = parameter.Name,
193
- ParameterType = typeof( ApiVersion ),
194
- };
195
- }
+ Name = parameter.Name,
+ ParameterType = typeof( ApiVersion ),
+ };
196
197
RemoveAllParametersExcept( parameter );
198
0 commit comments