xema v0.1.1 Xema.Any View Source

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

Usually this struct will be just used by xema.

Examples

iex> import Xema
Xema
iex> schema = xema :any
%Xema{type: %Xema.Any{}}
iex> schema.type == %Xema.Any{}
true

Link to this section Summary

Types

t()

The struct contains the keywords for the type any

Link to this section Types

Link to this type t() View Source
t() :: %Xema.Any{as: atom(), enum: list() | nil}

The struct contains the keywords for the type any.

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