Boolean type
Description for boolean type
The boolean type is used to validate boolean values (true or false).
{
"type": "boolean"
}
| Input | Status |
|---|---|
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.