ValidationMessages

Default messages when the decode failure is due to a validation error.

class Object
trait Matchable
class Any

Value members

Concrete methods

def invalidValueMessage[T](ve: ValidationError[T], valueName: String): String

Default message describing why a value is invalid.

Default message describing why a value is invalid.

Value Params
valueName

Name of the validated value to be used in error messages

def pathMessage(ve: ValidationError[_]): Option[String]

Default message describing the path to an invalid value. This is the path inside the validated object, e.g. user.address.street.name.

Default message describing the path to an invalid value. This is the path inside the validated object, e.g. user.address.street.name.

Default message describing the validation error: which value is invalid, and why.

Default message describing the validation error: which value is invalid, and why.

def validationErrorsMessage(ve: List[ValidationError[_]]): String

Default message describing a list of validation errors: which values are invalid, and why.

Default message describing a list of validation errors: which values are invalid, and why.