1 write to MinimumLength
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\LengthAttribute.cs (1)
19MinimumLength = minimumLength;
12 references to MinimumLength
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
131schema[$"min{targetKeySuffix}"] = lengthAttribute.MinimumLength;
Microsoft.Extensions.AI.Abstractions (4)
Utilities\AIJsonUtilities.Schema.Create.cs (4)
503if (lengthAttribute.MinimumLength > 0) 505obj[MinLengthStringPropertyName] ??= lengthAttribute.MinimumLength; 512if (lengthAttribute.MinimumLength > 0) 514obj[MinLengthCollectionPropertyName] ??= lengthAttribute.MinimumLength;
System.ComponentModel.Annotations (7)
System\ComponentModel\DataAnnotations\LengthAttribute.cs (7)
46/// <see cref="MinimumLength"/> is less than zero or <see cref="MaximumLength"/> is less than <see cref="MinimumLength"/>. 70return (uint)(length - MinimumLength) <= (uint)(MaximumLength - MinimumLength); 80string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name, MinimumLength, MaximumLength); 88if (MinimumLength < 0) 93if (MaximumLength < MinimumLength)