lib/plugins/validation.js
function () {
            this.errors = {};
            return flatten(this._static.validators.map(function runValidator(validator) {
                var col = validator.col, val = this.__values[validator.col], ret = validator.validate(val);
                this.errors[col] = ret;
                return ret;
            }, this));
        }
function () {
            this.errors = {};
            return flatten(this._static.validators.map(function runValidator(validator) {
                var col = validator.col, val = this.__values[validator.col], ret = validator.validate(val);
                this.errors[col] = ret;
                return ret;
            }, this));
        }
function ( ) { this . errors = { } ; return flatten ( this . _static . validators . map ( function runValidator ( validator ) { var col = validator . col , val = this . __values [ validator . col ] , ret = validator . validate ( val ) ; this . errors [ col ] = ret ; return ret ; } , this ) ) ; }
Validates a model, returning an array of error messages for each invalid property.
@return {String[]} an array of error messages for each invalid property.
Validates a model returning an array of error messages for each invalid property .