contract v0.1.0 Contract

Link to this section Summary

Link to this section Types

Link to this type

error()
error() :: {:error, any()}

Link to this type

validate_params()
validate_params() :: validate_params_t() | {:ok, validate_params_t()} | error()

Link to this type

validate_params_t()
validate_params_t() :: %{required(atom()) => any()}

Link to this type

validate_result()
validate_result() :: {:ok, %{required(atom()) => any()}} | error()

Link to this section Functions

Link to this function

cast(error, types)

Link to this function

default(error, defaults)

Link to this function

plug(error, plugs)

Link to this function

validate(error, validations)
validate(validate_params(), Map.t()) :: validate_result()