# CaporalValidator

Caporal-provided validator flags.

# Enumeration members

# ARRAY

ARRAY: = 8

Array validator. Convert any provided value to an array. If a string is provided, this validator will try to split it by commas.


# BOOLEAN

BOOLEAN: = 2

Boolean validator. Check that the value looks like a boolean. It accepts values like true, false, yes, no, 0, and 1 and will auto-cast those values to true or false.


# NUMBER

NUMBER: = 1

Number validator. Check that the value looks like a numeric one and cast the provided value to a javascript Number.


# STRING

STRING: = 4

String validator. Mainly used to make sure the value is a string, and prevent Caporal auto-casting of numerics values and boolean strings like true or false.