function validate(obj) {
  var useValidator = _getValidator(this);

  var isValid = useValidator(obj);
  if (isValid) return obj;else {
    throw newRxError('VD2', {
      errors: useValidator.errors,
      obj: obj,
      schema: this.jsonSchema
    });
  }
}
/**
 * validates the given object against the schema
 */
validates the given object against the schema
validates the given object against the schema
function validate(obj) {
  var useValidator = _getValidator(this);
  var isValid = useValidator(obj);
  if (isValid) return obj;else {
    throw newRxError('VD2', {
      errors: useValidator.errors,
      obj: obj,
      schema: this.jsonSchema
    });
  }
}
function validate ( obj ) { var useValidator = _getValidator ( this ) ; var isValid = useValidator ( obj ) ; if ( isValid ) return obj ; else { throw newRxError ( 'VD2' , { errors : useValidator . errors , obj : obj , schema : this . jsonSchema } ) ; } }
validates the given object against the schema
validates the given object against the schema