camo icon indicating copy to clipboard operation
camo copied to clipboard

Enhanced validation options

Open cdaringe opened this issue 8 years ago • 2 comments

hello:

I have found that I need additional validation/constraints in my models. specifically, key:value validation on objects.

i have used other modelling libraries that have offer similar schema definition capabilities (ampersand-state, very-model, etc), but none have yet matched joi. rather than the homebrew validation in camo, how do you feel about perhaps swapping validation with an existing schema library into the ORM? less work long term, and you get the benefits of deeply tested and feature-rich schemas! just tossin' it out there

cdaringe avatar Apr 24 '16 05:04 cdaringe

That's an interesting idea. I haven't used joi before, so I'll definitely check it out. I think its inclusion in Camo depends on its size, dependencies, etc.

Thanks for the idea!

scottwrobinson avatar May 02 '16 18:05 scottwrobinson

yea, let me know your thoughts. i'd be happy to co-hack it out if you found it worth pursuit.

cdaringe avatar May 02 '16 18:05 cdaringe