3 ms·
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
by steve_adams_86 8y ago
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.