2 writes to Constraints
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
DefaultApiDescriptionProvider.cs (1)
357Constraints = constraints,
EndpointMetadataApiDescriptionProvider.cs (1)
242Constraints = constraints.AsReadOnly(),
10 references to Constraints
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
77ConstraintTypes = parameter.RouteInfo.Constraints?.Select(c => c.GetType().Name).ToArray(),
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (8)
DefaultApiDescriptionProviderTest.cs (4)
191Assert.IsType(constraintType, Assert.Single(parameter.RouteInfo.Constraints)); 237Assert.IsType(constraintType, Assert.Single(parameter.RouteInfo.Constraints)); 439Assert.Empty(id1.RouteInfo.Constraints); 443Assert.IsType<IntRouteConstraint>(Assert.Single(id2.RouteInfo.Constraints));
EndpointMetadataApiDescriptionProviderTest.cs (4)
1391Assert.NotNull(parameter.RouteInfo.Constraints); 1392Assert.Empty(parameter.RouteInfo.Constraints); 1419Assert.NotNull(parameter.RouteInfo.Constraints); 1420Assert.Collection(parameter.RouteInfo.Constraints,
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
317if (parameterDescription.RouteInfo?.Constraints is { } constraints)