From e10ec9e9cb5bdadc2dbf5222b10e207ec655a343 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 26 Sep 2025 04:07:09 +0000 Subject: [PATCH] fix(mcp): Handle empty config dicts in validate_config - Change condition from 'if config' to 'if config is not None' - Fixes issue where empty config dicts {} were treated as falsy - Resolves AirbyteConnectorConfigurationMissingError for declarative connectors Fixes #803 Co-Authored-By: AJ Steers --- airbyte/_connector_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte/_connector_base.py b/airbyte/_connector_base.py index 66adde6c..96ed396c 100644 --- a/airbyte/_connector_base.py +++ b/airbyte/_connector_base.py @@ -173,7 +173,7 @@ def validate_config(self, config: dict[str, Any] | None = None) -> None: If config is not provided, the already-set config will be validated. """ spec = self._get_spec(force_refresh=False) - config = hydrate_secrets(config) if config else self._hydrated_config + config = hydrate_secrets(config) if config is not None else self._hydrated_config try: jsonschema.validate(config, spec.connectionSpecification)