Validixir brings powerful and reusable applicative validation to Elixir.
The library was created based on the conviction, that exclusively valid domains objects should be producible, and thus exist. To implement this requirement, we need an easy yet powerful mechanism of expressing validations. The concept of this library is mainly based on applicative validation from languages like Haskell, with some flavors coming from the dynamically typed nature of Elixir.
To see a complete example of validation with Validixir, check out the included example file and the corresponding test file.
The package can be installed by adding validixir
to your list of dependencies in mix.exs
:
def deps do
[
{:validixir, "~> 1.2.1"}
]
end
The documentation can be found on HexDocs.