src/lib/skemer.js
function validateNew(options) {
  options = validateOptions(options);

  //console.log('options after validation', util.inspect(options, {depth: null}));
  //return;
  //console.log('skemer.validateAdd called', arguments);

  return validateData.apply(this, [options, 
      undefined].concat(Array.prototype.slice.call(arguments, 1)));
}
function validateNew(options) {
  options = validateOptions(options);

  //console.log('options after validation', util.inspect(options, {depth: null}));
  //return;
  //console.log('skemer.validateAdd called', arguments);

  return validateData.apply(this, [options, 
      undefined].concat(Array.prototype.slice.call(arguments, 1)));
}
function validateNew ( options ) { options = validateOptions ( options ) ; //console.log('options after validation', util.inspect(options, {depth: null})); //return; //console.log('skemer.validateAdd called', arguments); return validateData . apply ( this , [ options , undefined ] . concat ( Array . prototype . slice . call ( arguments , 1 ) ) ) ; }
Validate and merge new data based on the given schema.

@param {Object} options An object containing the validation
[`options`]{@link #options}, including the [`schema`]{@link #schema}
@param {...*} newData Data to validate, merge and return

@returns {*} Validated and merged data
Validate and merge new data based on the given schema .