Codex.Validator behaviour (codex v0.9.2) View Source

Behaviour for validating incoming params

Link to this section Summary

Link to this section Callbacks

Specs

setup(term()) :: Macro.t()
Link to this callback

validate(params, schema)

View Source

Specs

validate(params :: any(), schema :: any()) :: {:ok, any()} | {:error, any()}