77 references to StringLengthAttribute
BasicWebSite (1)
FormatterWebSite (7)
HtmlGenerationWebSite (2)
Identity.ExternalClaims (6)
IdentitySample.DefaultUI (1)
IdentitySample.Mvc (4)
Microsoft.AspNetCore.Identity.UI (12)
Microsoft.AspNetCore.Mvc.Core.Test (11)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (11)
Microsoft.AspNetCore.Mvc.IntegrationTests (15)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Microsoft.AspNetCore.OpenApi.Tests (3)
Services\OpenApiSchemaService\OpenApiSchemaService.ParameterSchemas.cs (3)
344[([StringLength(10)] string name) => {}, (OpenApiSchema schema) => { Assert.Equal(10, schema.MaxLength); Assert.Equal(0, schema.MinLength); }],
345[([StringLength(10, MinimumLength = 5)] string name) => {}, (OpenApiSchema schema) => { Assert.Equal(10, schema.MaxLength); Assert.Equal(5, schema.MinLength); }],
348[([Url][StringLength(10)] string url) => {}, (OpenApiSchema schema) => { Assert.Equal("string", schema.Type); Assert.Equal("uri", schema.Format); Assert.Equal(10, schema.MaxLength); }],
RazorPagesWebSite (1)