From 067532288f9c8337ef6b05cac12c351b196788a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= <16805946+edgarrmondragon@users.noreply.github.com> Date: Thu, 11 Jan 2024 13:02:11 -0600 Subject: [PATCH] test: Fix GitLab field types (#2146) --- samples/sample_tap_gitlab/gitlab_rest_streams.py | 7 ++++--- samples/sample_tap_gitlab/schemas/epic_issues.json | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/samples/sample_tap_gitlab/gitlab_rest_streams.py b/samples/sample_tap_gitlab/gitlab_rest_streams.py index 1db629099..0d5968132 100644 --- a/samples/sample_tap_gitlab/gitlab_rest_streams.py +++ b/samples/sample_tap_gitlab/gitlab_rest_streams.py @@ -11,6 +11,7 @@ from singer_sdk.typing import ( ArrayType, DateTimeType, + DateType, IntegerType, PropertiesList, Property, @@ -158,9 +159,9 @@ class EpicsStream(ProjectBasedStream): Property("description", StringType), Property("state", StringType), Property("author_id", IntegerType), - Property("start_date", DateTimeType), - Property("end_date", DateTimeType), - Property("due_date", DateTimeType), + Property("start_date", DateType), + Property("end_date", DateType), + Property("due_date", DateType), Property("created_at", DateTimeType), Property("updated_at", DateTimeType), Property("labels", ArrayType(StringType)), diff --git a/samples/sample_tap_gitlab/schemas/epic_issues.json b/samples/sample_tap_gitlab/schemas/epic_issues.json index 2330bb427..36b4e14a5 100644 --- a/samples/sample_tap_gitlab/schemas/epic_issues.json +++ b/samples/sample_tap_gitlab/schemas/epic_issues.json @@ -122,7 +122,7 @@ }, "due_date": { "type": ["string", "null"], - "format": "date-time" + "format": "date" }, "epic_issue_id": { "type": "integer" @@ -150,7 +150,7 @@ }, "due_date": { "type": ["string", "null"], - "format": "date-time" + "format": "date" }, "id": { "type": "integer" @@ -163,7 +163,7 @@ }, "start_date": { "type": ["string", "null"], - "format": "date-time" + "format": "date" }, "state": { "type": "string"