validatex v0.3.0 Validatex.Validators View Source

This module provides a few functions for validating data.

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this macro

error_msg?(msg)

View Source (macro)
Link to this function

format(value, regex, msg)

View Source
format(raw(), Regex.t(), error_msg()) :: Result.t(error_msg(), raw())
Link to this function

in_list(value, list, msg)

View Source
in_list(a, [a], error_msg()) :: Result.t(error_msg(), a) when a: var
Link to this function

integer(value, base \\ 10, msg)

View Source
integer(raw(), 2..36, error_msg()) :: Result.t(error_msg(), integer())
Link to this function

not_empty?(value, msg)

View Source
not_empty?(raw(), error_msg()) :: Result.t(error_msg(), raw())
Link to this function

range(value, min, max, msg)

View Source
range(raw(), integer(), integer(), error_msg()) ::
  Result.t(error_msg(), raw())