81 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)
342[([StringLength(10)] string name) => {}, (OpenApiSchema schema) => { Assert.Equal(10, schema.MaxLength); Assert.Equal(0, schema.MinLength); }],
343[([StringLength(10, MinimumLength = 5)] string name) => {}, (OpenApiSchema schema) => { Assert.Equal(10, schema.MaxLength); Assert.Equal(5, schema.MinLength); }],
346[([Url][StringLength(10)] string url) => {}, (OpenApiSchema schema) => { Assert.Equal(JsonSchemaType.String, schema.Type); Assert.Equal("uri", schema.Format); Assert.Equal(10, schema.MaxLength); }],
Microsoft.Extensions.AI.Abstractions.Tests (1)
Microsoft.Extensions.AI.Integration.Tests (1)
Microsoft.Extensions.Validation.Tests (1)
MinimalValidationSample (1)
RazorPagesWebSite (1)