Skip to content

Latest commit

 

History

History
83 lines (58 loc) · 2.15 KB

README.md

File metadata and controls

83 lines (58 loc) · 2.15 KB

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.