# `JSV.BooleanSchema`
[🔗](https://github.com/lud/jsv/blob/v0.18.3/lib/jsv/boolean_schema.ex#L1)

Represents a boolean schema. Boolean schemas accept or reject any data
according to their boolean value.

This is very often used with the `additionalProperties` keyword.

# `t`

```elixir
@type t() :: %JSV.BooleanSchema{
  schema_path: [JSV.Builder.path_segment()],
  valid?: boolean()
}
```

# `of`

```elixir
@spec of(boolean(), [JSV.Builder.path_segment()]) :: t()
```

Returns a `JSV.BooleanSchema` struct wrapping the given boolean.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
