FluentValidation.AutoValidation
FluentValidation.AutoValidation copied to clipboard
Option to disable response override
By default, AutoValidation always writes validation error into response in JSON format, which is unnacceptable when you need to return an HTML-page with errors (that contains elements with asp-validation-for tag helpers).
The DontOverrideResult property in AutoValidationMvcConfiguration prevents the validation error message from being written that happens in the FluentValidationAutoValidationActionFilter class.