Skip to content

Instantly share code, notes, and snippets.

@csakis
Last active January 17, 2018 00:44
Show Gist options
  • Save csakis/9c27a02c13c02e82a94c1d34c465fb47 to your computer and use it in GitHub Desktop.
Save csakis/9c27a02c13c02e82a94c1d34c465fb47 to your computer and use it in GitHub Desktop.
request.response.details
[{
message: '"username" is not allowed to be empty',
path: ['username'],
type: 'any.empty',
context: {
key: 'username',
label: 'username'
}
},{
message: '"username" must be a valid email',
path: ['username'],
type: 'string.email',
context: {
value: '',
key: 'username',
label: 'username'
}
},{
message: '"password" is not allowed to be empty',
path: ['password'],
type: 'any.empty',
context: {
key: 'password',
label: 'password'
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment