Skip to content

Conversation

@Elorucov
Copy link

@Elorucov Elorucov commented Oct 23, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant