From 237b44edcaf17fcf43d2bbf99b1f8a3bf3c17704 Mon Sep 17 00:00:00 2001 From: Alex Cohnaiuc Date: Sun, 19 Jan 2025 15:14:04 +0200 Subject: [PATCH] fix validators --- tap_stella/schemas/feedback.json | 48 ++++++++++++++++++++++++-------- tap_stella/schemas/qa.json | 14 +++++++--- 2 files changed, 46 insertions(+), 16 deletions(-) diff --git a/tap_stella/schemas/feedback.json b/tap_stella/schemas/feedback.json index bc62d1b..36266d1 100644 --- a/tap_stella/schemas/feedback.json +++ b/tap_stella/schemas/feedback.json @@ -15,9 +15,16 @@ "integer" ] }, + "is_recovery": { + "type": [ + "boolean", + "null" + ] + }, "parent_uuid": { "type": [ - "string" + "string", + "null" ] }, "branding": { @@ -32,27 +39,34 @@ }, "ext_interaction_id": { "type": [ - "string" + "string", + "null" ] }, "external_url": { "type": [ - "string" + "string", + "null" + ] }, "language": { "type": [ - "string" + "string", + "null" + ] }, "survey_id": { "type": [ - "integer" + "integer", + "null" ] }, "survey_name": { "type": [ - "integer" + "string", + "null" ] }, "tags": { @@ -65,8 +79,7 @@ "type": [ "null", "string" - ], - "format": "date-time" + ] }, "request_delivery_status": { "type": [ @@ -78,8 +91,7 @@ "type": [ "null", "string" - ], - "format": "date-time" + ] }, "requested_via": { "type": [ @@ -87,12 +99,17 @@ "string" ] }, + "delivered_at": { + "type": [ + "null", + "string" + ] + }, "response_received_at": { "type": [ "null", "string" - ], - "format": "date-time" + ] }, "reward_eligible": { "type": [ @@ -106,6 +123,13 @@ "string" ] }, + "marketing": { + "type": [ + "null", + "object" + ], + "additionalProperties": true + }, "employee": { "type": [ "null", diff --git a/tap_stella/schemas/qa.json b/tap_stella/schemas/qa.json index 6c2861d..d3c1eca 100644 --- a/tap_stella/schemas/qa.json +++ b/tap_stella/schemas/qa.json @@ -27,8 +27,7 @@ "type": [ "null", "string" - ], - "format": "date-time" + ] }, "count_toward_score": { "type": [ @@ -76,8 +75,7 @@ "type": [ "null", "string" - ], - "format": "date-time" + ] } } }, @@ -179,6 +177,14 @@ ] } } + }, + "questions": { + "type": [ + "null", + "object" + ], + "additionalProperties": true } } } +