code: function validate(options) {
      const schema = joi.object().keys({
          actionName: joi.string().required(),
          authKey: joi.string().required(),
          modelName: joi.string().required(),
          acl: joi.object(),
          aclContextName: joi.string().required()
      });
      const errorMsg = 'Invalid rule options: ';
      const aclContext = options.acl[options.aclContextName];
      joi.assert(options, schema, errorMsg);
      joi.assert(aclContext, joi.func().required(), errorMsg);
      return true;
  }
docs: validate options sent to buildGeneric
  @param {object} options is the options to validate
  @return {boolean} true, otherwise throw error