Skip to content

Commit 2448d37

Browse files
author
Oleksandr Bazarnov
committed
test change
1 parent 8dd1200 commit 2448d37

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

airbyte_cdk/sources/declarative/models/declarative_component_schema.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -882,17 +882,20 @@ class FlattenFields(BaseModel):
882882

883883

884884
class KeyTransformation(BaseModel):
885-
type: Literal["KeyTransformation"]
886-
prefix: Optional[str] = Field(
885+
prefix: Optional[Union[str, None]] = Field(
887886
None,
888887
description="Prefix to add for object keys. If not provided original keys remain unchanged.",
889-
examples=["flattened_"],
888+
examples=[
889+
"flattened_",
890+
],
890891
title="Key Prefix",
891892
)
892-
suffix: Optional[str] = Field(
893+
suffix: Optional[Union[str, None]] = Field(
893894
None,
894895
description="Suffix to add for object keys. If not provided original keys remain unchanged.",
895-
examples=["_flattened"],
896+
examples=[
897+
"_flattened",
898+
],
896899
title="Key Suffix",
897900
)
898901

@@ -915,7 +918,7 @@ class DpathFlattenFields(BaseModel):
915918
description="Whether to replace the origin record or not. Default is False.",
916919
title="Replace Origin Record",
917920
)
918-
key_transformation: Optional[KeyTransformation] = Field(
921+
key_transformation: Optional[Union[KeyTransformation, None]] = Field(
919922
None,
920923
description="Transformation for object keys. If not provided, original key will be used.",
921924
title="Key transformation",
@@ -2637,4 +2640,4 @@ class DynamicDeclarativeStream(BaseModel):
26372640
ParentStreamConfig.update_forward_refs()
26382641
PropertiesFromEndpoint.update_forward_refs()
26392642
SimpleRetriever.update_forward_refs()
2640-
AsyncRetriever.update_forward_refs()
2643+
AsyncRetriever.update_forward_refs()

0 commit comments

Comments
 (0)