xema v0.1.1 Xema.Boolean View Source

This module contains the struct for the keywords of type boolean.

Usually this struct will be just used by xema.

Examples

iex> import Xema
Xema
iex> schema = xema :boolean
%Xema{type: %Xema.Boolean{}}
iex> schema.type == %Xema.Boolean{}
true

Link to this section Summary

Types

t()

The struct contains the keywords for the type boolean

Link to this section Types

Link to this type t() View Source
t() :: %Xema.Boolean{as: atom()}

The struct contains the keywords for the type boolean.

  • as is used in an error report. Default of as is :boolean
  • enum specifies an enumeration