lib/middleware/content/validate.js
function validateField(field, cb) {
        if (_.isArray(field.validation)) {
            async.each(field.validation, performValidation(field), function(err) {
                cb(err);
            });
        } else {
            cb();
        }
    }
function validateField(field, cb) {
        if (_.isArray(field.validation)) {
            async.each(field.validation, performValidation(field), function(err) {
                cb(err);
            });
        } else {
            cb();
        }
    }
function validateField ( field , cb ) { if ( _ . isArray ( field . validation ) ) { async . each ( field . validation , performValidation ( field ) , function ( err ) { cb ( err ) ; } ) ; } else { cb ( ) ; } }
Function will iterate all of the validation rules for a specific field and perform the validation rule.
Function will iterate all of the validation rules for a specific field and perform the validation rule .