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