From 98aeb27ff0566a9da6d346b83161f21f4dfcc903 Mon Sep 17 00:00:00 2001 From: danielpdwalker Date: Tue, 10 Oct 2023 19:57:09 +0100 Subject: [PATCH] Updated schema in ParkChildrenStream --- tap_theme_parks/streams.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tap_theme_parks/streams.py b/tap_theme_parks/streams.py index 437e4c6..66ad0cd 100644 --- a/tap_theme_parks/streams.py +++ b/tap_theme_parks/streams.py @@ -92,12 +92,14 @@ class ParkChildrenStream(ThemeParksStream): th.Property("timezone", th.StringType), th.Property( "children", - th.ObjectType( - th.Property("id", th.StringType), - th.Property("name", th.StringType), - th.Property("entityType", th.StringType), - th.Property("slug", th.StringType), - th.Property("externalId", th.StringType), + th.ArrayType( + th.ObjectType( + th.Property("id", th.StringType), + th.Property("name", th.StringType), + th.Property("entityType", th.StringType), + th.Property("slug", th.StringType), + th.Property("externalId", th.StringType), + ) ), ), ).to_dict()