Skip to content

Commit 702f0dd

Browse files
feat: add employee team schema
really wish there was a better way, but the personio API is really convoluted
1 parent d03a203 commit 702f0dd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tap_personio/streams.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ def schema(self):
7777
th.Property("id", th.IntegerType()),
7878
th.Property("name", th.StringType())
7979
)
80+
elif personio_id == "team":
81+
json_type = th.ObjectType(
82+
th.Property("id", th.IntegerType()),
83+
th.Property("name", th.StringType())
84+
)
8085
elif personio_id == "cost_centers":
8186
json_type = th.ArrayType(
8287
th.ObjectType(

0 commit comments

Comments
 (0)