Skip to content

Commit d929167

Browse files
author
Oleksandr Bazarnov
committed
add _-should_normalize flag handling
1 parent 0587481 commit d929167

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

airbyte_cdk/connector_builder/connector_builder_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ def get_limits(config: Mapping[str, Any]) -> TestLimits:
5656
return TestLimits(max_records, max_pages_per_slice, max_slices, max_streams)
5757

5858

59-
def normalize_manifest(config: Mapping[str, Any]) -> bool:
59+
def should_normalize_manifest(config: Mapping[str, Any]) -> bool:
6060
"""
6161
Check if the manifest should be normalized.
6262
:param config: The configuration to check
6363
:return: True if the manifest should be normalized, False otherwise.
6464
"""
65-
return config.get("__requires_normalization", False)
65+
return config.get("__should_normalize", False)
6666

6767

6868
def create_source(
@@ -74,7 +74,7 @@ def create_source(
7474
config=config,
7575
emit_connector_builder_messages=True,
7676
source_config=manifest,
77-
normalize_manifest=normalize_manifest(config),
77+
normalize_manifest=should_normalize_manifest(config),
7878
component_factory=ModelToComponentFactory(
7979
emit_connector_builder_messages=True,
8080
limit_pages_fetched_per_slice=limits.max_pages_per_slice,

0 commit comments

Comments
 (0)