def run_validator(value)
      return unless validator

      error = validator.call(value)

      if error
        Lita.logger.fatal(
          I18n.t("lita.config.validation_error", attribute: name, message: error)
        )

        raise ValidationError
      end
    end
def run_validator(value)
      return unless validator

      error = validator.call(value)

      if error
        Lita.logger.fatal(
          I18n.t("lita.config.validation_error", attribute: name, message: error)
        )

        raise ValidationError
      end
    end
Runs the validator from inside the build configuration object.