max_number
Checks that the number is not greater than the given value.
Error codes: TOO_HIGH, NOT_NUMBER, FORMAT_ERROR
rules
input
Invaliderrors
{
"age": "TOO_HIGH"
}Checks that the number is not greater than the given value.
Error codes: TOO_HIGH, NOT_NUMBER, FORMAT_ERROR
{
age: { max_number: 95 }
}{
age: 120
}{
"age": "TOO_HIGH"
}