Torngen.Spec.Schema.Enum (Torngen v0.1.2)

View Source

Schema of enum of a single type.

Summary

Types

t()

@type t() :: %Torngen.Spec.Schema.Enum{
  reference: Torngen.Spec.Reference.t() | nil,
  type: types(),
  values: [String.t() | number() | integer() | boolean()]
}

types()

@type types() :: :string | :number | :integer | :boolean

Functions

parse(spec, schema)