min_length
Checks that the string is at least the given number of characters long.
Error codes: TOO_SHORT, FORMAT_ERROR
rules
input
Invaliderrors
{
"first_name": "TOO_SHORT"
}Checks that the string is at least the given number of characters long.
Error codes: TOO_SHORT, FORMAT_ERROR
{
first_name: { min_length: 2 }
}{
first_name: 'A'
}{
"first_name": "TOO_SHORT"
}