Skip to content

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

Live example · edit rules or inputOpen in playground
rules
input
Invaliderrors
{
  "first_name": "CANNOT_BE_EMPTY"
}