11 instantiations of LengthAttribute
Microsoft.Extensions.AI.Abstractions.Tests (2)
Utilities\AIJsonUtilitiesTests.cs (2)
1124[Length(3, 10)] 1127[Length(1, 4)]
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
553[Length(1, 2)]
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)]
4 references to LengthAttribute
Microsoft.AspNetCore.Components.Endpoints (1)
Forms\DataAnnotationsLocalizer.cs (1)
104LengthAttribute a => string.Format(culture, messageTemplate, displayName, a.MinimumLength, a.MaximumLength),
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
148else if (attribute is LengthAttribute lengthAttribute)
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
596if (ResolveAttribute<LengthAttribute>() is { } lengthAttribute)
Shared.Tests (1)
Data.Validation\LengthAttributeTests.cs (1)
371var attr = new LengthAttribute(5);