FluentValidation.AutoValidation icon indicating copy to clipboard operation
FluentValidation.AutoValidation copied to clipboard

Option to disable response override

Open Elorucov opened this issue 1 month ago • 0 comments

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.

Elorucov avatar Oct 23 '25 20:10 Elorucov