Skip to content

Conversation

@pranavkm
Copy link
Contributor

Prevent 'System.Delegate' and some reflection types from being validated.

Fixes #36919

Prevent 'System.Delegate' and some reflection types from being validated.

Fixes #36919
@pranavkm pranavkm requested a review from javiercn as a code owner September 30, 2021 22:40
@ghost ghost added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Sep 30, 2021
@pranavkm pranavkm requested review from a team and davidfowl and removed request for javiercn September 30, 2021 22:40

var visited = validator.ValidationVisitor.Visited;
Assert.Collection(
visited,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the change, validation validates about 260k models.

@pranavkm
Copy link
Contributor Author

/backport to release/6.0

@github-actions
Copy link
Contributor

Started backporting to release/6.0: https://github.com/dotnet/aspnetcore/actions/runs/1292967004

@github-actions
Copy link
Contributor

@pranavkm an error occurred while backporting to release/6.0, please check the run log for details!

Error: @pranavkm is not a repo collaborator, backporting is not allowed.

@pranavkm pranavkm merged commit 6d334ff into main Oct 1, 2021
@pranavkm pranavkm deleted the prkrishn/36919-2 branch October 1, 2021 16:25
@ghost ghost added this to the 7.0-preview1 milestone Oct 1, 2021
pranavkm added a commit that referenced this pull request Oct 1, 2021
Prevent 'System.Delegate' and some reflection types from being validated.

Fixes #36919
dougbu pushed a commit that referenced this pull request Oct 4, 2021
Prevent 'System.Delegate' and some reflection types from being validated.

Fixes #36919
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.

MVC model validation in default configuration is very slow if models contain delegate properties

3 participants