View Source Parameter.Field (Parameter v0.5.1)

This module define the structure of a Field inside a Parameter Schema.

Link to this section Summary

Link to this section Types

@type t() :: %Parameter.Field{
  default: any(),
  key: binary(),
  name: atom(),
  required: boolean(),
  type: Parameter.Types.t(),
  validator: (... -> any())
}

Link to this section Functions

@spec new(opts :: Keyword.t()) :: t() | {:error, binary()}
@spec new!(Keyword.t()) :: t() | no_return()