Skip to content

length

Validator checks length of given text value.

Parameters

min

int Option represents minimum length.

max

int Option represents maximum length.

Example

source
{
    "type" : "length",
    "options": {
        "min" : 10,
        "max" : 50
    }
}