Skip to content

Note status of regexes for EmailAddressAttribute, PhoneAttribute, UrlAttribute #1201

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

Open
rpetrusha opened this issue Oct 31, 2018 · 0 comments
Labels
area-System.ComponentModel.DataAnnotations doc-update Update outdated articles help wanted Good for community contributors to help [up-for-grabs] Pri2 Indicates issues/PRs that are medium priority Pri3 Indicates issues/PRs that are low priority
Milestone

Comments

@rpetrusha
Copy link

Note status of regexes for EmailAddressAttribute, PhoneAttribute, UrlAttribute

See #686

In .NET Framework to version 4.6, the EmailAddressAttribute, PhoneAttribute, and UrlAttribute relied on regexes for validation. Version 4.6.1 made it possible to disable regex validation, which was on by default. Version 4.7.2 disabled regex validation by default.

.NET Core does not support regex validation for these types.

This needs to be made explicit in the documentation for the three types. For more information, see "dataAnnotations:dataTypeAttribute:disableRegex" app setting is on by default in .NET Framework 4.7.2.

//cc @KyleMit

@mairaw mairaw transferred this issue from dotnet/docs Nov 26, 2018
@mairaw mairaw added Pri2 Indicates issues/PRs that are medium priority doc-update Update outdated articles help wanted Good for community contributors to help [up-for-grabs] and removed untriaged New issue has not been triaged by the area owner labels Nov 26, 2018
@mairaw mairaw added this to the Backlog milestone Nov 26, 2018
@PRMerger13 PRMerger13 added the Pri3 Indicates issues/PRs that are low priority label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.ComponentModel.DataAnnotations doc-update Update outdated articles help wanted Good for community contributors to help [up-for-grabs] Pri2 Indicates issues/PRs that are medium priority Pri3 Indicates issues/PRs that are low priority
Projects
None yet
Development

No branches or pull requests

3 participants