Schrodinger v0.1.0 Schrodinger.Validations View Source

The individual validations that a field can have checked against it. 2 element tuples with check type and data

Link to this section Summary

Link to this section Types

Link to this type

validation()

View Source
validation() :: {atom(), any()}

Link to this section Functions

Link to this function

check(struct, attribute, arg)

View Source
check(struct(), atom(), validation()) :: :ok | {:error, {atom(), String.t()}}