Packages

Exchema is a library to define data types and validate it

Current section

Files

Jump to
exchema lib exchema types integer.ex
Raw

lib/exchema/types/integer.ex

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