Skip to content

vheathen/justify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Justify

Justify is a data validation library for Elixir.

The primary philosophy behind Justify is that it should be easy to validate data without schemas or types. All of Justify's validation functions will happily accept a plain ol' map.

iex> %{email: "madebyanthony"}
...> |> Justify.validate_required(:email)
...> |> Justify.validate_format(:email, ~r/\S+@\S+/)
%Justify.Dataset{errors: [email: {"has invalid format", validation: :format}], valid?: false}

Pretty simple. Not much more to it than that.

Supported Validations

About

Simple data validation for Elixir

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Elixir 100.0%