News for hackers. Stuff that matters.
Re:V8n – Fluent validation library for JavaScript by Klathmon on Sunday July 15, 2018 @02:43PM (#17536412)
I've also used AJV before.

https://github.com/epoberezkin/ajv

Re:V8n – Fluent validation library for JavaScript by root_axis on Sunday July 15, 2018 @03:00PM (#17536472)
My company migrated everything away from joi in favor of AJV. Joi isn't serialisable and the maintainers are hostile to the idea of adding that capability. There are some 3rd party extensions to add serialization support, but they are not feature-complete. I also find the declarative nature of JSON Schema preferable to joi's semi-imperative API which is occasionally quite difficult to debug.
Re:V8n – Fluent validation library for JavaScript by steve_adams_86 on Sunday July 15, 2018 @09:40PM (#17538175)
Why I like AJV or similar options is because you get to declare what you expect with a simple schema and it rarely needs to get complicated.

It's more overhead than simple functional approaches combined with conditional statements, but I think it's more approachable. Otherwise I find it doesn't leave too much of a margin for error and it's reasonably fast.

It's a personal preference, but I prefer it far more than a fluent interface. I actually avoid those now despite really loving them in the past.