clarkie / dynogels

DynamoDB data mapper for node.js. Originally forked from https://github.com/ryanfitz/vogels
Other
490 stars 110 forks source link

Disable Schema #61

Closed matheusvellone closed 7 years ago

matheusvellone commented 7 years ago

I'm trying to disable schema validation. I tried not setting schema attribute, and setting it to false, but none of this worked. Also tried to set schema to Joi.any(), doesn't work too.

Is there a way to achiev this ?

matheusvellone commented 7 years ago

I've managed to solve it with schema: Joi.object().unknown(), not a intuitive solution, but works. imho, schema: false would be a better way to allow the functionality.