validex v0.1.0 Validex.Validator behaviour
Summary
Callbacks
validate(attribute, rule_spec, value)
validate(attribute :: atom, rule_spec :: keyword, value :: any) :: [{:ok, atom | [atom], atom} | {:error, atom | [atom], atom, String.t}]
validate(rule_kind, attribute, rule_spec, value)
validate(rule_kind :: atom, attribute :: atom, rule_spec :: keyword, value :: any) :: [{:ok, atom | [atom], atom} | {:error, atom | [atom], atom, String.t}]