lib/schema.js
function (validations) {
		if (!validations) {
			return this;
		}

		if (!this.validations) {
			this.validations = [];
		}

		var that = this;

		_.isArray(validations) || (validations = [ validations ]);

		_.each(validations, function (validation) {
			that.validations.push(validation);
		});

		return this;
	}
function (validations) {
		if (!validations) {
			return this;
		}

		if (!this.validations) {
			this.validations = [];
		}

		var that = this;

		_.isArray(validations) || (validations = [ validations ]);

		_.each(validations, function (validation) {
			that.validations.push(validation);
		});

		return this;
	}
function ( validations ) { if ( ! validations ) { return this ; } if ( ! this . validations ) { this . validations = [ ] ; } var that = this ; _ . isArray ( validations ) || ( validations = [ validations ] ) ; _ . each ( validations , function ( validation ) { that . validations . push ( validation ) ; } ) ; return this ; }
set validate options. can be called several times

@method
@this {Schema}
@param {*} validations - validation options.
@returns {Schema} @this
set validate options . can be called several times