Skip to content

Commit

Permalink
Revert "Only execute default ruleset at field-level when no Options p…
Browse files Browse the repository at this point in the history
…rovided"

This reverts commit 66e2012.
  • Loading branch information
matthetherington-pa committed Dec 8, 2023
1 parent 66e2012 commit 7bfb8eb
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ private static ValidationContext<object> ConstructValidationContext(EditContext
}
else
{
context = ValidationContext<object>.CreateWithOptions(editContext.Model, options =>
{
options.UseCustomSelector(ValidatorOptions.Global.ValidatorSelectors.DefaultValidatorSelectorFactory());
});
context = new ValidationContext<object>(editContext.Model);
}

return context;
Expand Down

0 comments on commit 7bfb8eb

Please sign in to comment.