Skip to content

lessThan

Validator checks if given value is lower than given 'max' option.

Parameters

max

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

Example

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