exchema v0.1.0 Exchema.Transformer behaviour

The interface for a transformer

Link to this section Summary

Link to this section Types

Link to this type error()
error() :: String.t() | atom()
Link to this type result()
result() :: :ok | {:ok, any()} | {:error, error()}
Link to this type spec()
spec() :: {any(), any()}
Link to this type t()
t() :: module()

Link to this section Callbacks

Link to this callback transform(any, any, any)
transform(any(), any(), any()) :: result() | :unhandled