5 writes to RouteInfo
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
DefaultApiDescriptionProvider.cs (2)
256
parameter.
RouteInfo
= routeInfo;
291
RouteInfo
= routeParameter.Value,
EndpointMetadataApiDescriptionProvider.cs (1)
197
RouteInfo
= routeInfo
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
DefaultApiDescriptionProviderTest.cs (2)
2096
RouteInfo
= new ApiParameterRouteInfo(),
2151
RouteInfo
= new ApiParameterRouteInfo { DefaultValue = defaultValue },
31 references to RouteInfo
ApiExplorerWebSite (4)
ApiExplorerDataFilter.cs (4)
73
if (parameter.
RouteInfo
!= null)
77
ConstraintTypes = parameter.
RouteInfo
.Constraints?.Select(c => c.GetType().Name).ToArray(),
78
DefaultValue = parameter.
RouteInfo
.DefaultValue,
79
IsOptional = parameter.
RouteInfo
.IsOptional,
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
DefaultApiDescriptionProvider.cs (4)
260
!parameter.
RouteInfo
.IsOptional)
318
if (parameter.Source == BindingSource.Path && parameter.
RouteInfo
!= null && !parameter.
RouteInfo
.IsOptional)
331
parameter.DefaultValue = parameter.
RouteInfo
?.DefaultValue;
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (22)
DefaultApiDescriptionProviderTest.cs (13)
186
Assert.Equal(isOptional, parameter.
RouteInfo
.IsOptional);
191
Assert.IsType(constraintType, Assert.Single(parameter.
RouteInfo
.Constraints));
196
Assert.Equal(defaultValue, parameter.
RouteInfo
.DefaultValue);
200
Assert.Null(parameter.
RouteInfo
.DefaultValue);
232
Assert.Equal(isOptional, parameter.
RouteInfo
.IsOptional);
237
Assert.IsType(constraintType, Assert.Single(parameter.
RouteInfo
.Constraints));
242
Assert.Equal(defaultValue, parameter.
RouteInfo
.DefaultValue);
246
Assert.Null(parameter.
RouteInfo
.DefaultValue);
341
Assert.Null(id.
RouteInfo
);
372
Assert.NotNull(id.
RouteInfo
);
393
Assert.Equal(expectedOptional, parameter.
RouteInfo
.IsOptional);
439
Assert.Empty(id1.
RouteInfo
.Constraints);
443
Assert.IsType<IntRouteConstraint>(Assert.Single(id2.
RouteInfo
.Constraints));
EndpointMetadataApiDescriptionProviderTest.cs (9)
1385
Assert.Null(parameter.
RouteInfo
);
1390
Assert.NotNull(parameter.
RouteInfo
);
1391
Assert.NotNull(parameter.
RouteInfo
.Constraints);
1392
Assert.Empty(parameter.
RouteInfo
.Constraints);
1393
Assert.True(parameter.
RouteInfo
.IsOptional);
1394
Assert.Equal("default", parameter.
RouteInfo
!.DefaultValue);
1418
Assert.NotNull(parameter.
RouteInfo
);
1419
Assert.NotNull(parameter.
RouteInfo
.Constraints);
1420
Assert.Collection(parameter.
RouteInfo
.Constraints,
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
332
if (parameterDescription.
RouteInfo
?.Constraints is { } constraints)