Atex.Lexicon.Validators (atex v0.7.1)
View SourceSummary
Types
@type blob_option() :: {:accept, [String.t()]} | {:max_size, pos_integer()}
@type bytes() :: %{"$bytes": binary()}
@type cid_link() :: %{"$link": String.t()}
Functions
@spec array(Peri.schema_def(), [Atex.Lexicon.Validators.Array.option()]) :: Peri.custom_def()
@spec blob([blob_option()]) :: Peri.schema_def()
@spec boolean_validate(boolean(), String.t(), keyword() | map()) :: Peri.validation_result()
@spec bytes([Atex.Lexicon.Validators.Bytes.option()]) :: Peri.schema()
@spec integer([Atex.Lexicon.Validators.Integer.option()]) :: Peri.custom_def()
@spec lazy_ref(module(), atom()) :: Peri.schema()
@spec string([Atex.Lexicon.Validators.String.option()]) :: Peri.custom_def()