Skip to content

MajAhd/elx_validation

Repository files navigation

Elx Validation Pure Elixir Data Validator

Image


Simple and easy library to Validate data in Elixir

Build Status Hex.pm Hex.pm Hex.pm


install

mix.exs
{:elx_validation, "~> 0.1.3"}

mix deps.get

Usage


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"]
}]

Documentation

ElxValidation

Wiki


Author


Majid Ahmaditabar

ElxValidation is released under the MIT License.