You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am aware that the ValidationResult returned by validate() can contain a ValidationError.
Does this library provide a way to turn a ValidationError into an error text that can be shown to the user? Looks like generating such a message is somewhat involved, with ValidationError containing multiple potentially relevant fields, including subErrors. So I rather not reinvent the wheel here.
For my use cases this message does not need to be fancy or particularly user friendly. Something akin to a stack trace would work great and is miles better than just dumping a serialized version of ValidationError.
The text was updated successfully, but these errors were encountered:
I am aware that the
ValidationResult
returned byvalidate()
can contain aValidationError
.Does this library provide a way to turn a
ValidationError
into an error text that can be shown to the user? Looks like generating such a message is somewhat involved, withValidationError
containing multiple potentially relevant fields, includingsubErrors
. So I rather not reinvent the wheel here.For my use cases this message does not need to be fancy or particularly user friendly. Something akin to a stack trace would work great and is miles better than just dumping a serialized version of
ValidationError
.The text was updated successfully, but these errors were encountered: