Schema validator - Boolean

Validates input is boolean.

Options

Optional

{ opt: true }

Make this validator accept undefined as a value.

Coerce Value

{ coerce: Boolean }

Coerce the value to a boolean instead of strict-checking for type.