Simple and easy library to Validate data in Elixir
mix.exs
{:elx_validation, "~> 0.1.3"}
mix deps.get
data = %{
name: "Majid ahd",
email: "example@email.com"
}
rules = [
%{
field: "name",
as: "first name",
validate: ["required", "min:4", "max:10"]
},
%{
field: "email",
validate: ["required", "email"]
}]
- Start Validation
- Required
- Accepted
- Alpha & String
- Boolean
- Numbers
- Min & Max
- Internet
- In & Not_In
- UUID
- Date&Time
- Different
- Confirmation
- Nullable
- File
Majid Ahmaditabar
ElxValidation is released under the MIT License.