xema v0.6.1 Xema.Validator View Source
This module contains all validators to check data against a schema.
Link to this section Summary
Functions
Validates data
against the given schema
Link to this section Types
Link to this type
result()
View Source
result()
View Source
result() :: :ok | {:error, map()}
result() :: :ok | {:error, map()}
Link to this section Functions
Link to this function
validate(schema, value, opts)
View Source
validate(schema, value, opts)
View Source
validate(Xema.t() | Xema.Schema.t(), any(), keyword()) :: result()
validate(Xema.t() | Xema.Schema.t(), any(), keyword()) :: result()
Validates data
against the given schema
.