View Source Xema.Validator behaviour (xema v0.16.0)
This module contains all validators to check data against a schema.
Link to this section Summary
Callbacks
A callback for custom validators. For an example see: Custom validators
Functions
Validates data
against the given schema
.
Link to this section Types
@type result() :: :ok | {:error, map()}
Link to this section Callbacks
A callback for custom validators. For an example see: Custom validators
Link to this section Functions
@spec validate(Xema.Behaviour.t() | Xema.Schema.t(), any()) :: result()
Validates data
against the given schema
.