12 instantiations of LengthAttribute
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiSchemaService\OpenApiSchemaService.ParameterSchemas.cs (1)
341
[([
Length
(4, 8)] int[] id) => {}, (OpenApiSchema schema) => { Assert.Equal(4, schema.MinItems); Assert.Equal(8, schema.MaxItems); }],
Microsoft.Extensions.Http.Resilience (3)
Routing\OrderedGroupsRoutingOptions.cs (1)
25
[System.ComponentModel.DataAnnotations.
Length
(1, int.MaxValue)]
Routing\UriEndpointGroup.cs (1)
25
[System.ComponentModel.DataAnnotations.
Length
(1, int.MaxValue)]
Routing\WeightedGroupsRoutingOptions.cs (1)
31
[System.ComponentModel.DataAnnotations.
Length
(1, int.MaxValue)]
Shared.Tests (8)
Data.Validation\LengthAttributeTests.cs (8)
20
[
Length
(5, 7)]
76
[
Length
(5, 7, Exclusive = true)]
148
[
Length
(5, 7)]
205
[
Length
(5, 7)]
255
[
Length
(5, 7)]
321
[
Length
(5, 10)]
327
[
Length
(10, 5)]
333
[
Length
(-5, -10)]
2 references to LengthAttribute
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
126
else if (attribute is
LengthAttribute
lengthAttribute)
Shared.Tests (1)
Data.Validation\LengthAttributeTests.cs (1)
371
var
attr = new LengthAttribute(5);