scottwrobinson / camo

A class-based ES6 ODM for Mongo-like databases.
556 stars 80 forks source link

Arrays are not being validated #53

Closed biphobe closed 8 years ago

biphobe commented 8 years ago

Hello.

If you set type to Array or [], the type is not being validated at all.

If you change https://github.com/scottwrobinson/camo/blob/master/test/document.test.js#L792 to anything other than array document will be saved and test will fail.

scottwrobinson commented 8 years ago

Okay, I'll look in to it. Thanks for letting me know!