From b1910eb837ffb1104ed660e7dd62b391e0ec9afc Mon Sep 17 00:00:00 2001 From: "Edgar R. M" Date: Thu, 18 May 2023 10:16:37 -0600 Subject: [PATCH] fix: Append properties and not just names from internal `wrapped` attribute (#31) --- tap_rest_api_msdk/tap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tap_rest_api_msdk/tap.py b/tap_rest_api_msdk/tap.py index d92b9f1..50da474 100644 --- a/tap_rest_api_msdk/tap.py +++ b/tap_rest_api_msdk/tap.py @@ -133,7 +133,7 @@ class TapRestApiMsdk(Tap): ) # add common properties to top-level properties - for prop in common_properties.wrapped: + for prop in common_properties.wrapped.values(): top_level_properties.append(prop) # add common properties to the stream schema @@ -162,7 +162,7 @@ class TapRestApiMsdk(Tap): top_level_properties.append( th.Property( "streams", - th.ArrayType(th.ObjectType(*stream_properties.wrapped)), + th.ArrayType(th.ObjectType(*stream_properties.wrapped.values())), required=False, description="An array of streams, designed for separate paths using the" "same base url.",