From 1d3be01281d78e1b652a3d1da7d095df890c60fa Mon Sep 17 00:00:00 2001 From: kalyanr Date: Tue, 13 Jun 2023 08:25:10 +0530 Subject: [PATCH] fixed offer schema --- pyproject.toml | 2 +- tap_greenhouse/schemas/offer.py | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4d96cd2..d7400f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "rawwar-tap-greenhouse" -version = "0.2.0" +version = "0.3.0" description = "`tap-greenhouse` is a Singer tap for greenhouse, built with the Meltano Singer SDK." readme = "README.md" authors = ["kalyan reddy"] diff --git a/tap_greenhouse/schemas/offer.py b/tap_greenhouse/schemas/offer.py index 6159279..df2eb89 100644 --- a/tap_greenhouse/schemas/offer.py +++ b/tap_greenhouse/schemas/offer.py @@ -16,8 +16,14 @@ th.Property("status", th.StringType), th.Property("opened_at", th.StringType), th.Property("closed_at", th.StringType, required=False), - th.Property("application_id", th.StringType, required=False), - th.Property("close_reason", th.StringType, required=False), + th.Property("application_id", th.IntegerType, required=False), + th.Property( + "close_reason", + th.ObjectType( + th.Property("id", th.IntegerType), + th.Property("name", th.StringType), + ), + ), ), ), th.Property("created_at", th.StringType),