ashton v0.4.1 Ashton.Type View Source

Exposes functions for validating types, and determining if a value matches a type.

Link to this section Summary

Link to this section Functions

Link to this function

matches_type?(types, value) View Source
matches_type?(type :: term(), value :: term()) :: boolean()

Link to this function

merge(same, same) View Source
merge(left :: term(), right :: term()) :: term()

Link to this function

valid_type?(types) View Source
valid_type?(term()) :: boolean()

Link to this function

validate_types(types, field_name, opts, schema) View Source
validate_types(
  types :: Keyword.t(),
  field_name :: atom(),
  opts :: Keyword.t(),
  schema :: Ashton.schema()
) :: [{atom(), String.t()}]