---
description: boolean()
---

# boolean

## Effect

Get a schema object of type boolean.

## Arguments

None

## Example

```javascript
const schema = racoon.boolean();
schema.validate(1); // fail
schema.validate(true); // pass
schema.validate(false); // pass
```
