2 writes to MinimumLength
Microsoft.Extensions.AI.Abstractions.Tests (2)
Utilities\AIJsonUtilitiesTests.cs (2)
414AIFunction func = AIFunctionFactory.Create(([Range(1, 10)] int num, [StringLength(100, MinimumLength = 1)] string str) => num + str.Length, serializerOptions: options); 1089[StringLength(100, MinimumLength = 10)]
13 references to MinimumLength
Microsoft.AspNetCore.Components.Forms (2)
ClientValidation\DefaultClientValidationService.cs (2)
84if (sla.MinimumLength != 0) 86htmlAttributes.TryAdd("data-val-length-min", sla.MinimumLength.ToString(CultureInfo.InvariantCulture));
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
StringLengthAttributeAdapter.cs (3)
20_min = Attribute.MinimumLength.ToString(CultureInfo.InvariantCulture); 36if (Attribute.MinimumLength != 0) 51Attribute.MinimumLength);
Microsoft.Extensions.AI.Abstractions (2)
Utilities\AIJsonUtilities.Schema.Create.cs (2)
447if (stringLengthAttribute.MinimumLength > 0) 449obj[MinLengthStringPropertyName] ??= stringLengthAttribute.MinimumLength;
Microsoft.Extensions.Validation.Localization (1)
BuiltInFormatters.cs (1)
54=> string.Format(culture, messageTemplate, displayName, attribute.MaximumLength, attribute.MinimumLength);
System.ComponentModel.Annotations (5)
System\ComponentModel\DataAnnotations\StringLengthAttribute.cs (5)
58return length >= MinimumLength && length <= MaximumLength; 71bool useErrorMessageWithMinimum = MinimumLength != 0 && !CustomErrorMessageSet; 78return string.Format(CultureInfo.CurrentCulture, errorMessage, name, MaximumLength, MinimumLength); 91if (MaximumLength < MinimumLength) 93throw new InvalidOperationException(SR.Format(SR.RangeAttribute_MinGreaterThanMax, MaximumLength, MinimumLength));