sdepold/sequelize — Issue #118: Validators should obey "allowNull" attribute
Author: thisandagain
Created: 2012-01-04 06:05:03+00:00
State: open

Validation should by bypassed on fields that "allowNull: true" and provide a null value. As per the model.js:

````javascript
// if field has validators
if (self.validators.hasOwnProperty(field)) {
// is it not null or allowNull is false?
if (value === null && self.__options[field].indexOf("NOT NULL") === -1) {
// bypass
} else {
// ...
````