View Source JSV.BooleanSchema (jsv v0.3.0)

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.

Summary

Functions

Returns a JSV.BooleanSchema struct wrapping the given boolean.

Types

t()

@type t() :: %JSV.BooleanSchema{valid?: boolean()}

Functions

of(bool)

@spec of(boolean()) :: t()

Returns a JSV.BooleanSchema struct wrapping the given boolean.