code: function validate(schemaKeyRef, data) {
      if (!schemaKeyRef) {
          throw new Error("schemaKeyRef is required");
      }
      if (!data) {
          throw new Error("data is required");
      }
      if (!_.isString(schemaKeyRef)) {
          throw new Error("schemaKeyRef must be a string");
      }
      if (!_.isObject(data)) {
          throw new Error("data must be an object");
      }
      var result = {};
      result.valid = ajv.validate(schemaKeyRef, data);
      if (!result.valid) {
          result.errors = ajv.errors;
          result.message = getErrorMessage(ajv.errors);
      }
      return result;
  }
docs: Validate data using schema
  Schema will be compiled and cached (using serialized JSON as key. [json-stable-stringify](https://github.com/substack/json-stable-stringify) is used to serialize.
  @param  {String|Object} schemaKeyRef key, ref or schema object
  @param  {Object} data to be validated
  @return {{valid: boolean, errors: object[], message: string}} The result of the validation
  @private