Packages

Exchema is a library to define data types and validate it

Current section

Files

Jump to
exchema lib exchema types boolean.ex
Raw

lib/exchema/types/boolean.ex

defmodule Exchema.Types.Boolean do
@moduledoc "Represents a boolean"
alias Exchema.Predicates
@doc false
def __type__({}) do
{:ref, :any, [{{Predicates, :is}, :boolean}]}
end
end