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

Do not validate for primitive objects. #5923

Merged
merged 2 commits into from
Oct 25, 2020

Conversation

maliming
Copy link
Member

@maliming maliming commented Oct 24, 2020

string is also IEnumerable, so some performance problems are solved.

var validatingObjectType = validatingObject.GetType();
//Do not recursively validate for primitive objects
if (TypeHelper.IsPrimitiveExtended(validatingObjectType))
{
return;
}

@maliming maliming requested a review from hikalkan October 24, 2020 10:49
@hikalkan hikalkan merged commit 8ba56c9 into rel-3.3 Oct 25, 2020
@maliming maliming deleted the maliming/Validation-ignore-types branch October 26, 2020 01:07
maliming added a commit to aspnetboilerplate/aspnetboilerplate that referenced this pull request Nov 12, 2020
maliming added a commit to aspnetboilerplate/aspnetboilerplate that referenced this pull request Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants