From 5bfa73a923de781f4b404e5c83c83f10d314b5f5 Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 08:51:32 -0300 Subject: [PATCH 01/17] set properties as object --- tap_klaviyo/schemas/profiles.json | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index a2c91a6..8ef8026 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -174,18 +174,10 @@ }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", - "patternProperties": { - "^.*$": { - "anyOf": [ - {"type": "object"}, - {"type": "string"}, - {"type": "number"}, - {"type": "boolean"}, - {"type": "null"} - ] - } - }, - "additionalProperties": false + "type": [ + "object", + "null" + ] }, "subscriptions": { "properties": { From 95fd571b70bae54666b723c81f5ccae79aaf289e Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 08:56:19 -0300 Subject: [PATCH 02/17] revert --- tap_klaviyo/schemas/profiles.json | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index 8ef8026..a2c91a6 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -174,10 +174,18 @@ }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", - "type": [ - "object", - "null" - ] + "patternProperties": { + "^.*$": { + "anyOf": [ + {"type": "object"}, + {"type": "string"}, + {"type": "number"}, + {"type": "boolean"}, + {"type": "null"} + ] + } + }, + "additionalProperties": false }, "subscriptions": { "properties": { From 35fd5eeefe0ddf06556bcf496b4ae273157af646 Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:05:46 -0300 Subject: [PATCH 03/17] adding missing type --- tap_klaviyo/schemas/profiles.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index a2c91a6..74e6d65 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -185,6 +185,10 @@ ] } }, + "type": [ + "object", + "null" + ] "additionalProperties": false }, "subscriptions": { From 6fb92b70821e17d7ccd5da47f85d010b48fbbdfc Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:06:35 -0300 Subject: [PATCH 04/17] adding missing comma --- tap_klaviyo/schemas/profiles.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index 74e6d65..5f9903d 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -188,7 +188,7 @@ "type": [ "object", "null" - ] + ], "additionalProperties": false }, "subscriptions": { From ce33c3eabb5dca536b93f5a0fe800ef94fb7671e Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:09:45 -0300 Subject: [PATCH 05/17] remove pattern --- tap_klaviyo/schemas/profiles.json | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index 5f9903d..82dcd9c 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -174,17 +174,6 @@ }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", - "patternProperties": { - "^.*$": { - "anyOf": [ - {"type": "object"}, - {"type": "string"}, - {"type": "number"}, - {"type": "boolean"}, - {"type": "null"} - ] - } - }, "type": [ "object", "null" From 1841eb469a8986ac9a3e515caf2e2847131a6079 Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:11:29 -0300 Subject: [PATCH 06/17] remove aditional properties --- tap_klaviyo/schemas/profiles.json | 1 - 1 file changed, 1 deletion(-) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index 82dcd9c..54c52f3 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -178,7 +178,6 @@ "object", "null" ], - "additionalProperties": false }, "subscriptions": { "properties": { From d88810ea0c7ca7518dbb955f6108fc3f99c7558b Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:12:51 -0300 Subject: [PATCH 07/17] adding pattern --- tap_klaviyo/schemas/profiles.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index 54c52f3..6115aae 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -174,10 +174,23 @@ }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", + "patternProperties": { + "^.*$": { + "anyOf": [ + {"type": "object"}, + {"type": "array"}, + {"type": "string"}, + {"type": "number"}, + {"type": "boolean"}, + {"type": "null"} + ] + } + }, "type": [ "object", "null" ], + "additionalProperties": false }, "subscriptions": { "properties": { From 05337a2f9399900dddeeac8ab01e30e3775b7777 Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:15:56 -0300 Subject: [PATCH 08/17] fix latitude longitude --- tap_klaviyo/schemas/profiles.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index 6115aae..f43d43c 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -134,14 +134,14 @@ "latitude": { "description": "Latitude coordinate. We recommend providing a precision of four decimal places.", "type": [ - "string", + "number", "null" ] }, "longitude": { "description": "Longitude coordinate. We recommend providing a precision of four decimal places.", "type": [ - "string", + "number", "null" ] }, From 68b2da3c304006b87f6e6ee802b0f2516e97a71e Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:19:16 -0300 Subject: [PATCH 09/17] test --- tap_klaviyo/schemas/profiles.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index f43d43c..dbdf718 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -186,10 +186,6 @@ ] } }, - "type": [ - "object", - "null" - ], "additionalProperties": false }, "subscriptions": { From 5c4fe9d0846396fd41aa9e328962a9b857425ec0 Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:25:00 -0300 Subject: [PATCH 10/17] test --- tap_klaviyo/schemas/profiles.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index dbdf718..8fa378e 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -186,6 +186,7 @@ ] } }, + "type": [], "additionalProperties": false }, "subscriptions": { @@ -326,6 +327,7 @@ "format": "date-time", "type": [ "string", + "number", "null" ] }, @@ -333,6 +335,7 @@ "description": "The method by which the profile was subscribed to SMS marketing.", "type": [ "string", + "number", "null" ] }, From dc88bed2c6da2c50bab9aa6267823a902c8c6527 Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:26:36 -0300 Subject: [PATCH 11/17] test --- tap_klaviyo/schemas/profiles.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index 8fa378e..041e1f7 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -186,7 +186,7 @@ ] } }, - "type": [], + "type": ["object",], "additionalProperties": false }, "subscriptions": { From 3031a7777d1968da3667e717a04161fd49b1c9a8 Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:28:48 -0300 Subject: [PATCH 12/17] fix latitude longitude --- tap_klaviyo/schemas/profiles.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index 041e1f7..703cf8f 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -134,6 +134,7 @@ "latitude": { "description": "Latitude coordinate. We recommend providing a precision of four decimal places.", "type": [ + "string", "number", "null" ] @@ -141,6 +142,7 @@ "longitude": { "description": "Longitude coordinate. We recommend providing a precision of four decimal places.", "type": [ + "string", "number", "null" ] @@ -327,7 +329,6 @@ "format": "date-time", "type": [ "string", - "number", "null" ] }, @@ -335,7 +336,6 @@ "description": "The method by which the profile was subscribed to SMS marketing.", "type": [ "string", - "number", "null" ] }, From 6ba20fa364f1dc9af9a201d75e6d3a9c4ccad590 Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:30:40 -0300 Subject: [PATCH 13/17] test --- tap_klaviyo/schemas/profiles.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index 703cf8f..aba1460 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -188,7 +188,7 @@ ] } }, - "type": ["object",], + "type": ["object", "null"], "additionalProperties": false }, "subscriptions": { From 42094565b004b7ffb989c258ecebd6fa7b95ed19 Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:32:57 -0300 Subject: [PATCH 14/17] test --- tap_klaviyo/schemas/profiles.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index aba1460..94c4759 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -189,7 +189,7 @@ } }, "type": ["object", "null"], - "additionalProperties": false + "additionalProperties": true }, "subscriptions": { "properties": { From a76c9989dcf3d42a72159938c7dd223f8e451a94 Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:37:27 -0300 Subject: [PATCH 15/17] test --- tap_klaviyo/schemas/profiles.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index 94c4759..6031b44 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -188,8 +188,7 @@ ] } }, - "type": ["object", "null"], - "additionalProperties": true + "additionalProperties": false }, "subscriptions": { "properties": { From 2bb97d4fcd98f9bdc608d5b625ce4d54406ebb87 Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:48:07 -0300 Subject: [PATCH 16/17] test --- tap_klaviyo/schemas/profiles.json | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index 6031b44..de24e16 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -176,19 +176,10 @@ }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", - "patternProperties": { - "^.*$": { - "anyOf": [ - {"type": "object"}, - {"type": "array"}, - {"type": "string"}, - {"type": "number"}, - {"type": "boolean"}, - {"type": "null"} - ] - } - }, - "additionalProperties": false + "type": [ + "object", + "null" + ] }, "subscriptions": { "properties": { From 522a2b73c868b74a1133be396cb9495de5a9d527 Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Thu, 15 Feb 2024 14:12:42 -0300 Subject: [PATCH 17/17] fix --- tap_klaviyo/schemas/profiles.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tap_klaviyo/schemas/profiles.json b/tap_klaviyo/schemas/profiles.json index de24e16..557e32d 100644 --- a/tap_klaviyo/schemas/profiles.json +++ b/tap_klaviyo/schemas/profiles.json @@ -176,6 +176,19 @@ }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", + "patternProperties": { + "^.*$": { + "anyOf": [ + {"type": "object"}, + {"type": "array"}, + {"type": "string"}, + {"type": "number"}, + {"type": "boolean"}, + {"type": "null"} + ] + } + }, + "additionalProperties": false, "type": [ "object", "null"