Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MinLength/MaxLength description is too specific #10981

Open
MizardX opened this issue Feb 19, 2025 · 1 comment
Open

MinLength/MaxLength description is too specific #10981

MizardX opened this issue Feb 19, 2025 · 1 comment
Labels
area-System.ComponentModel.DataAnnotations untriaged New issue has not been triaged by the area owner

Comments

@MizardX
Copy link

MizardX commented Feb 19, 2025

Type of issue

Typo

Description

The description says that the MinLengthAttribute and MaxLengthAttribute attributes works on "length of array or string data", while the description of the LengthAttribute attribute says it works on "length of collection/string data".

Looking at the source, all three attributes uses CountPropertyHelper.TryGetCount(), so the descriptions should be similar.

Please change the description of MinLengthAttribute and MaxLengthAttribute to match the wording of LengthAttribute, such that it mentions "collection" instead of "array".

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.minlengthattribute?view=net-9.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.ComponentModel.DataAnnotations/MinLengthAttribute.xml

Document Version Independent Id

cea3e844-0415-4269-9f5a-ec4b71c3ff21

Article author

@dotnet-bot

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Feb 19, 2025
Copy link
Contributor

Tagging subscribers to this area: @ajcvickers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.ComponentModel.DataAnnotations untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

1 participant