From 5d76f2de6597cf274288e96eae78fd9c043b2241 Mon Sep 17 00:00:00 2001 From: Lucas Zielke Date: Tue, 28 Sep 2021 15:53:42 -0400 Subject: [PATCH] Change TagsStream and SharedHierarchyStream To comply with [singer specifications](https://github.com/singer-io/getting-started/blob/master/docs/SPEC.md#schema-message) key_properties needs to exist on top level (or be an empty list), of which Tags and Shared does not have ["id"]. --- tap_clickup/streams.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tap_clickup/streams.py b/tap_clickup/streams.py index ebad965..656840f 100644 --- a/tap_clickup/streams.py +++ b/tap_clickup/streams.py @@ -146,7 +146,7 @@ class TagsStream(ClickUpStream): name = "tag" path = "/space/{space_id}/tag" - primary_keys = ["id"] + primary_keys = ["name"] replication_key = None schema_filepath = SCHEMAS_DIR / "tag.json" records_jsonpath = "$.tags[*]" @@ -158,7 +158,7 @@ class SharedHierarchyStream(ClickUpStream): name = "shared_hierarchy" path = "/team/{team_id}/shared" - primary_keys = ["id"] + primary_keys = [] replication_key = None schema_filepath = SCHEMAS_DIR / "shared.json" records_jsonpath = "$.shared"