From a3a0e4be98f7bb0f211733eb4af7e5e78105c3ab Mon Sep 17 00:00:00 2001 From: Jon Wihl Date: Tue, 19 Mar 2024 21:05:21 -0400 Subject: [PATCH] Prevent string default value for date-time fields --- .../streams/base_insight_streams.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source-facebook-marketing/source_facebook_marketing/streams/base_insight_streams.py b/source-facebook-marketing/source_facebook_marketing/streams/base_insight_streams.py index a55e23c8d6..dfc111ccbd 100644 --- a/source-facebook-marketing/source_facebook_marketing/streams/base_insight_streams.py +++ b/source-facebook-marketing/source_facebook_marketing/streams/base_insight_streams.py @@ -300,10 +300,11 @@ def get_json_schema(self) -> Mapping[str, Any]: for k in self.primary_key: if k not in schema["properties"]: continue - + typ = schema["properties"][k]["type"] if "string" in typ or typ == "string": - schema["properties"][k]["default"] = "" + if "format" not in schema["properties"][k]: + schema["properties"][k]["default"] = "" return schema