Number validations
required
: can't be undefined (default:false
)equal
: * equal to passed valueinteger
: must be an integer (default:false
)precision
: maximum number of decimal placespositive
: must be positive (default:false
)negative
: must be negative (default:false
)multiple
: must be a multiple of the passed valuemin
: ** minimum valid value (works like the>=
operator)greater
: ** must be greater than passed value (works like the>
operator)max
: ** maximum valid value (works like the<=
operator)less
: ** must be smaller than passed value (works like the<
operator)nullable
: accepts null (default:false
)
Last updated