Norm
Data specification and generation (by elixir-toniq)
valdi
Simple data validation for elixir (by bluzky)
Our great sponsors
- Paraxial.io - Bot detection and prevention for Elixir/Phoenix applications
- Scout APM - Less time debugging, more time building
- SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Norm
Posts with mentions or reviews of Norm.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-05-12.
-
Pattern matching and guards as a form of natural type specification?
Forget the typespecs. Have a boundary layer where you check the shape of things and their types as they enter your system and possibly convert them to some type you need inside your system. Norm is great for this.
-
Question on how to idiomatically apply "defensive programming" concepts from Pragmatic Programmer book
HexDocs for norm. — I am not a robot but maybe there should be a Hex package manager auto link bot. 🤖
-
Erlang/OTP 24 Highlights
I generally verify types only at the boundaries of my application (or very critical modules) using norm[1].
Either you have a strict type system that does not have an "any" type (yes, I'm looking at you Typescript), or you have a flexible type system like Python/Erlang/Elixir and you do runtime type checking whenever it's needed.
I'm writing more Typescript code than I would in Javascript for almost no type safety benefits (but for documentation, it's awesome).
-
Clojure Spec like library in Elixir for data generation
Check out Norm. Sounds like it's right up your alley
valdi
Posts with mentions or reviews of valdi.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-06.
-
Easy data validation with with Valdi in Elixir
And I think some of you may want a ready to use library so I wrapped it up, added some useful api and published on hex.pm and github repo here.
What are some alternatives?
When comparing Norm and valdi you can also consider the following projects:
vex - Data Validation for Elixir
is - Fast, extensible and easy to use data structure validation for elixir with nested structures support.
optimal - A schema based keyword list option validator.
Elixir - Elixir is a dynamic, functional language designed for building scalable and maintainable applications
contrak - Schema and Contract validation library for Elixir