View Source Elixact.Type behaviour (elixact v0.1.2)

Behaviour and macros for defining custom types.

Summary

Callbacks

@callback json_schema() :: map()
@callback type_definition() :: Elixact.Types.type_definition()
@callback validate(term()) :: {:ok, term()} | {:error, term()}