Numeric rules
Numeric rules accept numbers and strings that look like numbers, and return the value as a number, see Types coercing. All of them return FORMAT_ERROR for objects and lists.
integerChecks that the value is an integer. Strings that look like integers are accepted and returned as numbers.'integer'NOT_INTEGERpositive_integerChecks that the value is an integer greater than zero.'positive_integer'NOT_POSITIVE_INTEGERdecimalChecks that the value is a number, an integer or a decimal. Strings that look like numbers are accepted and returned as numbers.'decimal'NOT_DECIMALpositive_decimalChecks that the value is a number greater than zero.'positive_decimal'NOT_POSITIVE_DECIMALmax_numberChecks that the number is not greater than the given value.{ max_number: 95 }TOO_HIGHNOT_NUMBERmin_numberChecks that the number is not less than the given value.{ min_number: 18 }TOO_LOWNOT_NUMBERnumber_betweenChecks that the number is between the two values, inclusive.{ number_between: [18, 95] }TOO_HIGHTOO_LOWNOT_NUMBER