not_empty
Checks that the value is not an empty string, if the field is passed at all. Unlike required, a missing field is valid.
Error code: CANNOT_BE_EMPTY
rules
input
Invaliderrors
{
"first_name": "CANNOT_BE_EMPTY"
}Checks that the value is not an empty string, if the field is passed at all. Unlike required, a missing field is valid.
Error code: CANNOT_BE_EMPTY
{
first_name: 'not_empty',
middle_name: 'not_empty'
}{
first_name: ''
}{
"first_name": "CANNOT_BE_EMPTY"
}