balderdashy/waterline — pull request #242 by RickSnyder (2014-01-27 22:32:42+00:00)
Title: Fix validation on required boolean fields when value is not present.  See issue #241

Fix for issue #241.

Boolean fields that have 'required: true' in their attributes list currently fail validation when not provided at time of object creation.

This fix ensures that we safely check that we have a value before trying to call toString() on it in lib/waterline/core/validations.js.