20 references to MaxLengthAttribute
Aspire.Dashboard (1)
Model\Otlp\FilterDialogFormModel.cs (1)
20[MaxLength(1024, ErrorMessageResourceType = typeof(Dialogs), ErrorMessageResourceName = nameof(Dialogs.FieldTooLong))]
FormatterWebSite (2)
Models\Project.cs (2)
15[MaxLength(5)] 23[MaxLength(5)]
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (8)
DataAnnotationsModelValidatorTest.cs (3)
368var attribute = new MaxLengthAttribute(4); 457new MaxLengthAttribute(length) { ErrorMessage = LocalizationKey }, 461new MaxLengthAttribute(length) { ErrorMessage = LocalizationKey },
MaxLengthAttributeAdapterTest.cs (5)
23var attribute = new MaxLengthAttribute(10); 57var attribute = new MaxLengthAttribute(10); 88var attribute = new MaxLengthAttribute(5) { ErrorMessage = message }; 114var attribute = new MaxLengthAttribute(10); 146var attribute = new MaxLengthAttribute(10);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
DefaultHtmlGeneratorTest.cs (2)
1071[MaxLength(MaxLengthAttributeValue)] 1079[MaxLength(MaxLengthAttributeValue)]
Microsoft.AspNetCore.OpenApi.Tests (5)
Services\OpenApiSchemaService\OpenApiSchemaService.ParameterSchemas.cs (3)
333[([MaxLength(5)] string id) => {}, (OpenApiSchema schema) => Assert.Equal(5, schema.MaxLength)], 335[([MaxLength(5)] int[] ids) => {}, (OpenApiSchema schema) => Assert.Equal(5, schema.MaxItems)], 531[MaxLength(5)]
Shared\SharedTypes.cs (2)
186[MaxLength(10)] 198[MaxLength(10)]
Sample (2)
src\OpenApi\test\Microsoft.AspNetCore.OpenApi.Tests\Shared\SharedTypes.cs (2)
186[MaxLength(10)] 198[MaxLength(10)]