length_between
Checks that the length of the string is between the two values, inclusive.
Error codes: TOO_LONG, TOO_SHORT, FORMAT_ERROR
rules
input
Invaliderrors
{
"first_name": "TOO_SHORT"
}Checks that the length of the string is between the two values, inclusive.
Error codes: TOO_LONG, TOO_SHORT, FORMAT_ERROR
{
first_name: { length_between: [2, 10] }
}{
first_name: 'A'
}{
"first_name": "TOO_SHORT"
}