number_between
Checks that the number is between the two values, inclusive.
Error codes: TOO_HIGH, TOO_LOW, NOT_NUMBER, FORMAT_ERROR
rules
input
Invaliderrors
{
"age": "TOO_LOW"
}Checks that the number is between the two values, inclusive.
Error codes: TOO_HIGH, TOO_LOW, NOT_NUMBER, FORMAT_ERROR
{
age: { number_between: [18, 95] }
}{
age: '17'
}{
"age": "TOO_LOW"
}