Skip to content

lessEqThan

Validator checks if given value is lower or equal to given 'max' option.

Parameters

max

int Option used to compare if given value is lower or equal to this max option.

Example

source
{
    "type" : "lessEqThan",
    "options": {
        "max" : 10
    }
}