lib/errors/validation_error.js
function getErrorMessage(errors) {
  if (_.isArray(errors)) {
    return _.uniq(_.pluck(errors, 'stack')).join().replace(/instance./g, '');
  } else if (errors) {
    return errors.message;
  }
}
function getErrorMessage(errors) {
  if (_.isArray(errors)) {
    return _.uniq(_.pluck(errors, 'stack')).join().replace(/instance./g, '');
  } else if (errors) {
    return errors.message;
  }
}
function getErrorMessage ( errors ) { if ( _ . isArray ( errors ) ) { return _ . uniq ( _ . pluck ( errors , 'stack' ) ) . join ( ) . replace ( / instance. / g , '' ) ; } else if ( errors ) { return errors . message ; } }
convert errors given by jsonschema
convert errors given by jsonschema