Xema.Behaviour behaviour (hl7 v1.0.0)
A behaviour module for implementing a schema validator. This behaviour is
just for Xema
and JsonXema
.
Summary
Callbacks
This callback initialize the schema. The function gets the data given to
Xema.new/1
and returns a Xema.Schema
.
Types
@type t() :: struct()
The schema container.
Callbacks
Link to this callback
init(any, keyword)
@callback init(any(), keyword()) :: Xema.Schema.t()
This callback initialize the schema. The function gets the data given to
Xema.new/1
and returns a Xema.Schema
.