Skip to content

Commit 2d0174d

Browse files
committed
source-tiktok-marketing: patch out date-time format
Tiktok recently changed their API to have datetime fields return values that don't comply with the ISO 8601 format. Meaning that in order to avoid schema violation errors, all those fields shouldn't have a `"format": "date-time"` in the document schema We previously tried to remove these formats in #343, but formats defined by the connector need patched out with `null` to remove them per JSON merge semantics. This commit does that for the currently patched streams and for all other discovered streams that had `"format": "date-time"` for one or more fields.
1 parent 16b3e40 commit 2d0174d

28 files changed

+588
-20
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"properties": {
3+
"dimensions": {
4+
"properties": {
5+
"stat_time_day": {
6+
"type": ["null", "string"],
7+
"format": null
8+
},
9+
"stat_time_hour": {
10+
"type": ["null", "string"],
11+
"format": null
12+
}
13+
}
14+
},
15+
"stat_time_day": {
16+
"type": "string",
17+
"format": null
18+
},
19+
"stat_time_hour": {
20+
"type": ["null", "string"],
21+
"format": null
22+
}
23+
}
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"properties": {
3+
"dimensions": {
4+
"properties": {
5+
"stat_time_day": {
6+
"type": ["null", "string"],
7+
"format": null
8+
},
9+
"stat_time_hour": {
10+
"type": ["null", "string"],
11+
"format": null
12+
}
13+
}
14+
},
15+
"stat_time_day": {
16+
"type": "string",
17+
"format": null
18+
},
19+
"stat_time_hour": {
20+
"type": ["null", "string"],
21+
"format": null
22+
}
23+
}
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"properties": {
3+
"dimensions": {
4+
"properties": {
5+
"stat_time_day": {
6+
"type": ["null", "string"],
7+
"format": null
8+
},
9+
"stat_time_hour": {
10+
"type": ["null", "string"],
11+
"format": null
12+
}
13+
}
14+
},
15+
"stat_time_day": {
16+
"type": "string",
17+
"format": null
18+
},
19+
"stat_time_hour": {
20+
"type": ["null", "string"],
21+
"format": null
22+
}
23+
}
24+
}
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
22
"properties":{
33
"schedule_start_time": {
4-
"type": "string"
4+
"type": "string",
5+
"format": null
56
},
67
"create_time":{
7-
"type": "string"
8+
"type": "string",
9+
"format": null
810
},
911
"schedule_end_time": {
10-
"type": "string"
12+
"type": "string",
13+
"format": null
1114
},
1215
"modify_time": {
13-
"type": "string"
16+
"type": "string",
17+
"format": null
1418
}
1519
}
16-
}
20+
}

airbyte-integrations/connectors/source-tiktok-marketing/streams/ad_groups_reports_daily.patch.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,22 @@
33
"dimensions":{
44
"properties":{
55
"stat_time_hour":{
6-
"type": ["null", "string"]
6+
"type": ["null", "string"],
7+
"format": null
78
},
89
"stat_time_day":{
9-
"type": ["null", "string"]
10+
"type": ["null", "string"],
11+
"format": null
1012
}
1113
}
1214
},
1315
"stat_time_hour":{
14-
"type": ["null", "string"]
16+
"type": ["null", "string"],
17+
"format": null
1518
},
1619
"stat_time_day":{
17-
"type": "string"
20+
"type": "string",
21+
"format": null
1822
}
1923
}
20-
}
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"properties": {
3+
"dimensions": {
4+
"properties": {
5+
"stat_time_day": {
6+
"type": ["null", "string"],
7+
"format": null
8+
},
9+
"stat_time_hour": {
10+
"type": ["null", "string"],
11+
"format": null
12+
}
13+
}
14+
},
15+
"stat_time_day": {
16+
"type": ["null", "string"],
17+
"format": null
18+
},
19+
"stat_time_hour": {
20+
"type": "string",
21+
"format": null
22+
}
23+
}
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"properties": {
3+
"dimensions": {
4+
"properties": {
5+
"stat_time_day": {
6+
"type": ["null", "string"],
7+
"format": null
8+
},
9+
"stat_time_hour": {
10+
"type": ["null", "string"],
11+
"format": null
12+
}
13+
}
14+
},
15+
"stat_time_day": {
16+
"type": ["null", "string"],
17+
"format": null
18+
},
19+
"stat_time_hour": {
20+
"type": ["null", "string"],
21+
"format": null
22+
}
23+
}
24+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"properties": {
3+
"create_time": {
4+
"type": "string",
5+
"format": null
6+
},
7+
"modify_time": {
8+
"type": "string",
9+
"format": null
10+
}
11+
}
12+
}

airbyte-integrations/connectors/source-tiktok-marketing/streams/ads_audience_reports_by_country_daily.patch.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,22 @@
33
"dimensions":{
44
"properties": {
55
"stat_time_day": {
6-
"type": ["null", "string"]
6+
"type": ["null", "string"],
7+
"format": null
78
},
89
"stat_time_hour": {
9-
"type": ["null", "string"]
10+
"type": ["null", "string"],
11+
"format": null
1012
}
1113
}
1214
},
1315
"stat_time_day":{
14-
"type": "string"
16+
"type": "string",
17+
"format": null
1518
},
1619
"stat_time_hour":{
17-
"type": ["null", "string"]
20+
"type": ["null", "string"],
21+
"format": null
1822
}
1923
}
20-
}
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"properties": {
3+
"dimensions": {
4+
"properties": {
5+
"stat_time_day": {
6+
"type": ["null", "string"],
7+
"format": null
8+
},
9+
"stat_time_hour": {
10+
"type": ["null", "string"],
11+
"format": null
12+
}
13+
}
14+
},
15+
"stat_time_day": {
16+
"type": "string",
17+
"format": null
18+
},
19+
"stat_time_hour": {
20+
"type": ["null", "string"],
21+
"format": null
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)