1 write to MaximumLength
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\LengthAttribute.cs (1)
20
MaximumLength
= maximumLength;
8 references to MaximumLength
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
153
schema[$"max{targetKeySuffix}"] = lengthAttribute.
MaximumLength
;
Microsoft.Extensions.AI.Abstractions (2)
Utilities\AIJsonUtilities.Schema.Create.cs (2)
616
obj[MaxLengthStringPropertyName] ??= lengthAttribute.
MaximumLength
;
625
obj[MaxLengthCollectionPropertyName] ??= lengthAttribute.
MaximumLength
;
System.ComponentModel.Annotations (5)
System\ComponentModel\DataAnnotations\LengthAttribute.cs (5)
46
/// <see cref="MinimumLength"/> is less than zero or <see cref="
MaximumLength
"/> is less than <see cref="MinimumLength"/>.
70
return (uint)(length - MinimumLength) <= (uint)(
MaximumLength
- MinimumLength);
84
/// <see cref="MinimumLength" />, and <c>{2}</c> is replaced with <see cref="
MaximumLength
" />.
88
return string.Format(CultureInfo.CurrentCulture, format, name, MinimumLength,
MaximumLength
);
102
if (
MaximumLength
< MinimumLength)