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