email: {
type: 'string',
email: true,
required: true,
unique: true
}
{
"error": "E_VALIDATION",
"status": 400,
"summary": "1 attribute is invalid",
"model": "User",
"invalidAttributes": {
"userEmail": [
{
"rule": "email",
"message": "\"email\" validation rule failed for input: 'normik@mail.ru'"
}
]
}
}
{ email: { type: 'email', required: true, unique: true } }