Skip to content

ValidationAttributeAdapterProvider allows ValidationAttribute's sub-classes #14074

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

Merged
merged 1 commit into from
Sep 17, 2019

Conversation

neilbgr
Copy link
Contributor

@neilbgr neilbgr commented Sep 17, 2019

The built-in ValidationAttributeAdapterProvider allows ValidationAttribute's sub-classes. This permits to inherit built-in ValidationAttribute classes (ie RegularExpressionValidationAttribute, ...) while keeping the standard behavior.

Fixes #13782

@dnfclas
Copy link

dnfclas commented Sep 17, 2019

CLA assistant check
All CLA requirements met.

@pranavkm pranavkm merged commit 3ec6f86 into dotnet:master Sep 17, 2019
@pranavkm
Copy link
Contributor

Thanks for the PR!

@pranavkm pranavkm added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Sep 17, 2019
@pranavkm pranavkm added this to the 5.0.0-preview1 milestone Sep 17, 2019
@neilbgr
Copy link
Contributor Author

neilbgr commented Sep 17, 2019

You're welcome, it's a pleasure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ValidationAttributeAdapterProvider should match sub-classes ValidationAttribute
3 participants