Validation with multiple validation errors #4407
-
Hello, I'm currently migrating a complex validation framework to the build in validation and I'm searching for the possiblity to display multiple errors to one field. There seems to be the possibility to use "Multiline" inside the "ValidationError", but I can not find any example. Can somebody show me, how multiline is supposed to be used? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
First, the |
Beta Was this translation helpful? Give feedback.
First, the
Multiline
need to be enabled onValidationError
. Next, that multi-lined messages will only work with data annotations and fluent validation validators. Regular Validator handler doesn't support multiline messages. Technically it should work with some minor changes to the codebase, but we would need to decide on the API.