@@ -882,17 +882,20 @@ class FlattenFields(BaseModel):
882882
883883
884884class 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):
26372640ParentStreamConfig .update_forward_refs ()
26382641PropertiesFromEndpoint .update_forward_refs ()
26392642SimpleRetriever .update_forward_refs ()
2640- AsyncRetriever .update_forward_refs ()
2643+ AsyncRetriever .update_forward_refs ()
0 commit comments