lib/schema.js
function validateIODJob(IOD, IODOpts) {
		var job = IODOpts.job
		var errors = []

		_.each(job.actions, function(action) {
			// Validate every IOD action in job
			var err = validateAction(IOD, action.name, action.params)
			if (err) return errors.push({
				action: action.name,
				error: err
			})

			// Validate every IOD action required inputs in job
			var inputErr = validateActionInputs(IOD, {
				action: action.name,
				params: action.params
			})
			if (inputErr) return errors.push({
				action: action.name,
				error: inputErr
			})

			// Validate every IOD action parameter pairs in job
			var pairErr = validateParamPairs(IOD, {
				action: action.name,
				params: action.params
			})
			if (pairErr) return errors.push({
				action: action.name,
				error: pairErr
			})
		})

		if (errors.length) return errors
	}
function validateIODJob(IOD, IODOpts) {
		var job = IODOpts.job
		var errors = []

		_.each(job.actions, function(action) {
			// Validate every IOD action in job
			var err = validateAction(IOD, action.name, action.params)
			if (err) return errors.push({
				action: action.name,
				error: err
			})

			// Validate every IOD action required inputs in job
			var inputErr = validateActionInputs(IOD, {
				action: action.name,
				params: action.params
			})
			if (inputErr) return errors.push({
				action: action.name,
				error: inputErr
			})

			// Validate every IOD action parameter pairs in job
			var pairErr = validateParamPairs(IOD, {
				action: action.name,
				params: action.params
			})
			if (pairErr) return errors.push({
				action: action.name,
				error: pairErr
			})
		})

		if (errors.length) return errors
	}
function validateIODJob ( IOD , IODOpts ) { var job = IODOpts . job var errors = [ ] _ . each ( job . actions , function ( action ) { // Validate every IOD action in job var err = validateAction ( IOD , action . name , action . params ) if ( err ) return errors . push ( { action : action . name , error : err } ) // Validate every IOD action required inputs in job var inputErr = validateActionInputs ( IOD , { action : action . name , params : action . params } ) if ( inputErr ) return errors . push ( { action : action . name , error : inputErr } ) // Validate every IOD action parameter pairs in job var pairErr = validateParamPairs ( IOD , { action : action . name , params : action . params } ) if ( pairErr ) return errors . push ( { action : action . name , error : pairErr } ) } ) if ( errors . length ) return errors }
Validates IOD action schema for every action in job, along with their required inputs.

@param {IOD} IOD - IOD object
@param {Object} IODOpts - IOD options object
@returns {Object | null} - Schema errors
Validates IOD action schema for every action in job along with their required inputs .