1 write to MinimumLength
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\LengthAttribute.cs (1)
19MinimumLength = minimumLength;
13 references to MinimumLength
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
152schema[$"min{targetKeySuffix}"] = lengthAttribute.MinimumLength;
Microsoft.Extensions.AI.Abstractions (4)
Utilities\AIJsonUtilities.Schema.Create.cs (4)
611if (lengthAttribute.MinimumLength > 0) 613obj[MinLengthStringPropertyName] ??= lengthAttribute.MinimumLength; 620if (lengthAttribute.MinimumLength > 0) 622obj[MinLengthCollectionPropertyName] ??= lengthAttribute.MinimumLength;
System.ComponentModel.Annotations (8)
System\ComponentModel\DataAnnotations\LengthAttribute.cs (8)
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); 84/// <see cref="MinimumLength" />, and <c>{2}</c> is replaced with <see cref="MaximumLength" />. 88return string.Format(CultureInfo.CurrentCulture, format, name, MinimumLength, MaximumLength); 97if (MinimumLength < 0) 102if (MaximumLength < MinimumLength)