Closed theiostream closed 6 years ago
Hi, thanks for reporting this, can you submit a PR with a failing test or your example of it failing?
Thanks
I'm going to close this because of no response. We can open it back up if you submit some more details on how it is broken or how to fix it.
As per the Joi documentation, if we have a schema with a
Joi.object()
type and we pass a valid JSON string into it, it should convert that JSON string into a JavaScript object.However, if Dynogels'
Model.update()
receives an object without all Joi-required keys, it will handle Joi'sValidationError
and move on, ignoring allany.required
errors and just assuming the object we had passed to the validator originally was decent.The issue is that if Joi errors out it will not convert that JSON string into a JavaScript object.