From 0ac771f32525c0cb6fb6dde32b09c263e0829b52 Mon Sep 17 00:00:00 2001 From: Alex Bair Date: Wed, 22 Jan 2025 15:03:12 -0500 Subject: [PATCH] source-zendesk-support: address various ticket_audits schema violations --- source-zendesk-support/acmeCo/ticket_audits.schema.yaml | 3 +++ .../source_zendesk_support/schemas/ticket_audits.json | 6 +++--- .../snapshots/snapshots__discover__capture.stdout.json | 9 ++++++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/source-zendesk-support/acmeCo/ticket_audits.schema.yaml b/source-zendesk-support/acmeCo/ticket_audits.schema.yaml index c2ee1010a3..5060935c17 100644 --- a/source-zendesk-support/acmeCo/ticket_audits.schema.yaml +++ b/source-zendesk-support/acmeCo/ticket_audits.schema.yaml @@ -306,6 +306,7 @@ properties: type: - "null" - integer + - string locale: type: - "null" @@ -416,6 +417,7 @@ properties: - string - array - object + - integer items: type: - "null" @@ -445,6 +447,7 @@ properties: type: - "null" - string + - integer author_id: type: - "null" diff --git a/source-zendesk-support/source_zendesk_support/schemas/ticket_audits.json b/source-zendesk-support/source_zendesk_support/schemas/ticket_audits.json index 56d5b87918..9f00c0f2c8 100644 --- a/source-zendesk-support/source_zendesk_support/schemas/ticket_audits.json +++ b/source-zendesk-support/source_zendesk_support/schemas/ticket_audits.json @@ -171,7 +171,7 @@ "type": ["null", "string"] }, "id": { - "type": ["null", "integer"] + "type": ["null", "integer", "string"] }, "locale": { "type": ["null", "string"] @@ -259,7 +259,7 @@ "type": ["null", "integer"] }, "previous_value": { - "type": ["null", "string", "array", "object"], + "type": ["null", "string", "array", "object", "integer"], "items": { "type": ["null", "string"] }, @@ -282,7 +282,7 @@ "type": ["null", "boolean"] }, "resource": { - "type": ["null", "string"] + "type": ["null", "string", "integer"] } } } diff --git a/source-zendesk-support/tests/snapshots/snapshots__discover__capture.stdout.json b/source-zendesk-support/tests/snapshots/snapshots__discover__capture.stdout.json index f6a2ebabb9..7a386c5c72 100644 --- a/source-zendesk-support/tests/snapshots/snapshots__discover__capture.stdout.json +++ b/source-zendesk-support/tests/snapshots/snapshots__discover__capture.stdout.json @@ -1774,7 +1774,8 @@ "id": { "type": [ "null", - "integer" + "integer", + "string" ] }, "locale": { @@ -1942,7 +1943,8 @@ "null", "string", "array", - "object" + "object", + "integer" ], "items": { "type": [ @@ -1986,7 +1988,8 @@ "resource": { "type": [ "null", - "string" + "string", + "integer" ] } }