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