Boolean type

The boolean type is used to validate only boolean values (true or false).

{
  "type": "boolean"
}

true - valid

false - valid

"true" - invalid (is string)

null - invalid (is null)

0 - invalid (is integer/number)

Validation keywords

The boolean type has no specific validation keywords.