function _getValidator(rxSchema) {
  var hash = rxSchema.hash;

  if (!VALIDATOR_CACHE.has(hash)) {
    var validator = new ZSchema();

    var validatorFun = function validatorFun(obj) {
      validator.validate(obj, rxSchema.jsonSchema);
      return validator;
    };

    VALIDATOR_CACHE.set(hash, validatorFun);
  }

  return VALIDATOR_CACHE.get(hash);
}
/**
 * returns the parsed validator from z-schema
 * @param schemaPath if given, the schema for the sub-path is used
 * @
 */
returns the parsed validator from z-schema
@param schemaPath if given, the schema for the sub-path is used
.
returns the parsed validator from z - schema @param schemaPath if given the schema for the sub - path is used .
function _getValidator(rxSchema) {
  var hash = rxSchema.hash;
  if (!VALIDATOR_CACHE.has(hash)) {
    var validator = new ZSchema();
    var validatorFun = function validatorFun(obj) {
      validator.validate(obj, rxSchema.jsonSchema);
      return validator;
    };
    VALIDATOR_CACHE.set(hash, validatorFun);
  }
  return VALIDATOR_CACHE.get(hash);
}
function _getValidator ( rxSchema ) { var hash = rxSchema . hash ; if ( ! VALIDATOR_CACHE . has ( hash ) ) { var validator = new ZSchema ( ) ; var validatorFun = function validatorFun ( obj ) { validator . validate ( obj , rxSchema . jsonSchema ) ; return validator ; } ; VALIDATOR_CACHE . set ( hash , validatorFun ) ; } return VALIDATOR_CACHE . get ( hash ) ; }
returns the parsed validator from z-schema
 @param schemaPath if given, the schema for the sub-path is used
 @
returns the parsed validator from z - schema @param schemaPath if given the schema for the sub - path is used @