View Source Schematic (schematic v0.0.4)

Link to this section Summary

Link to this section Types

@opaque t()

Link to this section Functions

@spec all([t()]) :: t()
@spec any() :: t()
@spec bool(boolean() | nil) :: t()
@spec dump(t(), any()) :: any()
@spec int(integer() | nil) :: t()
@spec list() :: t()
@spec list(t()) :: t()
@spec map(map() | [tuple()]) :: t()
@spec null() :: t()
@spec oneof([t()] | (any() -> t())) :: t()
@spec optional(any()) :: %Schematic.OptionalKey{key: any()}
Link to this function

raw(function, opts \\ [])

View Source
@spec raw((any() -> boolean()), [tuple()]) :: t()
@spec schema(atom(), map()) :: t()
@spec str(String.t() | nil) :: t()
Link to this function

tuple(schematics, opts \\ [])

View Source
@spec tuple([t()], [tuple()]) :: t()
@spec unify(t(), any()) :: any()