max_length
Checks that the string is not longer than the given number of characters.
Error codes: TOO_LONG, FORMAT_ERROR
rules
input
Invaliderrors
{
"first_name": "TOO_LONG"
}Checks that the string is not longer than the given number of characters.
Error codes: TOO_LONG, FORMAT_ERROR
{
first_name: { max_length: 10 }
}{
first_name: 'Maximilian-Alexander'
}{
"first_name": "TOO_LONG"
}