2 writes to MaxLength
Microsoft.AspNetCore.Routing (2)
Constraints\LengthRouteConstraint.cs (2)
35MinLength = MaxLength = length; 66MaxLength = maxLength;
4 references to MaxLength
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
231schema[OpenApiSchemaKeywords.MaxLengthKeyword] = lengthRouteConstraint.MaxLength;
Microsoft.AspNetCore.Routing (1)
Constraints\LengthRouteConstraint.cs (1)
107return length >= MinLength && length <= MaxLength;
Microsoft.AspNetCore.Routing.Tests (2)
DefaultInlineConstraintResolverTest.cs (2)
173Assert.Equal(5, ((LengthRouteConstraint)constraint).MaxLength); 185Assert.Equal(10, lengthConstraint.MaxLength);