From 064eb6db62896e308f4e98d239f7f4fd19171e4d Mon Sep 17 00:00:00 2001 From: Aldo Gonzalez Date: Fri, 13 Dec 2024 14:27:24 -0600 Subject: [PATCH] airbyte-cdk: custom retriever defaults --- .../declarative/parsers/model_to_component_factory.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py b/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py index 215d6fff9..4d2b4b4b4 100644 --- a/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py +++ b/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py @@ -1512,7 +1512,7 @@ def create_exponential_backoff_strategy( ) def create_http_requester( - self, model: HttpRequesterModel, decoder: Decoder, config: Config, *, name: str + self, model: HttpRequesterModel, config: Config, decoder: Decoder=JsonDecoder(parameters={}), *, name: str ) -> HttpRequester: authenticator = ( self._create_component_from_model( @@ -1896,7 +1896,7 @@ def create_record_selector( config: Config, *, name: str, - transformations: List[RecordTransformation], + transformations: Optional[List[RecordTransformation]] = None, decoder: Optional[Decoder] = None, client_side_incremental_sync: Optional[Dict[str, Any]] = None, **kwargs: Any, @@ -1928,7 +1928,7 @@ def create_record_selector( name=name, config=config, record_filter=record_filter, - transformations=transformations, + transformations=transformations or [], schema_normalization=schema_normalization, parameters=model.parameters or {}, )