Skip to content

Commit 75c17b4

Browse files
authored
Format google-search-console schemas (#6047)
1 parent 1314a6a commit 75c17b4

File tree

14 files changed

+98
-371
lines changed

14 files changed

+98
-371
lines changed

airbyte-integrations/connectors/source-google-search-console/credentials/credentials.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"client_id": "YOUR_CLIENT_ID",
33
"client_secret": "YOUR_CLIENT_SECRET",
44
"redirect_uri": "YOUR_REDIRECTED_URI"
5-
}
5+
}

airbyte-integrations/connectors/source-google-search-console/integration_tests/catalog.json

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
"stream": {
55
"name": "sites",
66
"json_schema": {},
7-
"supported_sync_modes": [
8-
"full_refresh"
9-
]
7+
"supported_sync_modes": ["full_refresh"]
108
},
119
"sync_mode": "full_refresh",
1210
"destination_sync_mode": "overwrite"
@@ -15,9 +13,7 @@
1513
"stream": {
1614
"name": "sitemaps",
1715
"json_schema": {},
18-
"supported_sync_modes": [
19-
"full_refresh"
20-
]
16+
"supported_sync_modes": ["full_refresh"]
2117
},
2218
"sync_mode": "full_refresh",
2319
"destination_sync_mode": "overwrite"
@@ -26,10 +22,7 @@
2622
"stream": {
2723
"name": "search_analytics_by_country",
2824
"json_schema": {},
29-
"supported_sync_modes": [
30-
"full_refresh",
31-
"incremental"
32-
]
25+
"supported_sync_modes": ["full_refresh", "incremental"]
3326
},
3427
"sync_mode": "full_refresh",
3528
"destination_sync_mode": "overwrite"
@@ -38,10 +31,7 @@
3831
"stream": {
3932
"name": "search_analytics_by_date",
4033
"json_schema": {},
41-
"supported_sync_modes": [
42-
"full_refresh",
43-
"incremental"
44-
]
34+
"supported_sync_modes": ["full_refresh", "incremental"]
4535
},
4636
"sync_mode": "full_refresh",
4737
"destination_sync_mode": "overwrite"
@@ -50,10 +40,7 @@
5040
"stream": {
5141
"name": "search_analytics_by_device",
5242
"json_schema": {},
53-
"supported_sync_modes": [
54-
"full_refresh",
55-
"incremental"
56-
]
43+
"supported_sync_modes": ["full_refresh", "incremental"]
5744
},
5845
"sync_mode": "full_refresh",
5946
"destination_sync_mode": "overwrite"
@@ -62,10 +49,7 @@
6249
"stream": {
6350
"name": "search_analytics_by_page",
6451
"json_schema": {},
65-
"supported_sync_modes": [
66-
"full_refresh",
67-
"incremental"
68-
]
52+
"supported_sync_modes": ["full_refresh", "incremental"]
6953
},
7054
"sync_mode": "full_refresh",
7155
"destination_sync_mode": "overwrite"
@@ -74,10 +58,7 @@
7458
"stream": {
7559
"name": "search_analytics_by_query",
7660
"json_schema": {},
77-
"supported_sync_modes": [
78-
"full_refresh",
79-
"incremental"
80-
]
61+
"supported_sync_modes": ["full_refresh", "incremental"]
8162
},
8263
"sync_mode": "full_refresh",
8364
"destination_sync_mode": "overwrite"
@@ -86,10 +67,7 @@
8667
"stream": {
8768
"name": "search_analytics_all_fields",
8869
"json_schema": {},
89-
"supported_sync_modes": [
90-
"full_refresh",
91-
"incremental"
92-
]
70+
"supported_sync_modes": ["full_refresh", "incremental"]
9371
},
9472
"sync_mode": "full_refresh",
9573
"destination_sync_mode": "overwrite"

airbyte-integrations/connectors/source-google-search-console/integration_tests/configured_catalog.json

Lines changed: 18 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -4,114 +4,72 @@
44
"stream": {
55
"name": "search_analytics_by_date",
66
"json_schema": {},
7-
"supported_sync_modes": [
8-
"full_refresh",
9-
"incremental"
10-
],
7+
"supported_sync_modes": ["full_refresh", "incremental"],
118
"source_defined_cursor": true,
12-
"default_cursor_field": [
13-
"date"
14-
]
9+
"default_cursor_field": ["date"]
1510
},
1611
"sync_mode": "incremental",
17-
"cursor_field": [
18-
"date"
19-
],
12+
"cursor_field": ["date"],
2013
"destination_sync_mode": "append"
2114
},
2215
{
2316
"stream": {
2417
"name": "search_analytics_by_country",
2518
"json_schema": {},
26-
"supported_sync_modes": [
27-
"full_refresh",
28-
"incremental"
29-
],
19+
"supported_sync_modes": ["full_refresh", "incremental"],
3020
"source_defined_cursor": true,
31-
"default_cursor_field": [
32-
"date"
33-
]
21+
"default_cursor_field": ["date"]
3422
},
3523
"sync_mode": "incremental",
36-
"cursor_field": [
37-
"date"
38-
],
24+
"cursor_field": ["date"],
3925
"destination_sync_mode": "append"
4026
},
4127
{
4228
"stream": {
4329
"name": "search_analytics_by_device",
4430
"json_schema": {},
45-
"supported_sync_modes": [
46-
"full_refresh",
47-
"incremental"
48-
],
31+
"supported_sync_modes": ["full_refresh", "incremental"],
4932
"source_defined_cursor": true,
50-
"default_cursor_field": [
51-
"date"
52-
]
33+
"default_cursor_field": ["date"]
5334
},
5435
"sync_mode": "incremental",
55-
"cursor_field": [
56-
"date"
57-
],
36+
"cursor_field": ["date"],
5837
"destination_sync_mode": "append"
5938
},
6039
{
6140
"stream": {
6241
"name": "search_analytics_by_page",
6342
"json_schema": {},
64-
"supported_sync_modes": [
65-
"full_refresh",
66-
"incremental"
67-
],
43+
"supported_sync_modes": ["full_refresh", "incremental"],
6844
"source_defined_cursor": true,
69-
"default_cursor_field": [
70-
"date"
71-
]
45+
"default_cursor_field": ["date"]
7246
},
7347
"sync_mode": "incremental",
74-
"cursor_field": [
75-
"date"
76-
],
48+
"cursor_field": ["date"],
7749
"destination_sync_mode": "append"
7850
},
7951
{
8052
"stream": {
8153
"name": "search_analytics_by_query",
8254
"json_schema": {},
83-
"supported_sync_modes": [
84-
"full_refresh",
85-
"incremental"
86-
],
55+
"supported_sync_modes": ["full_refresh", "incremental"],
8756
"source_defined_cursor": true,
88-
"default_cursor_field": [
89-
"date"
90-
]
57+
"default_cursor_field": ["date"]
9158
},
9259
"sync_mode": "incremental",
93-
"cursor_field": [
94-
"date"
95-
],
60+
"cursor_field": ["date"],
9661
"destination_sync_mode": "append"
9762
},
9863
{
9964
"stream": {
10065
"name": "search_analytics_all_fields",
10166
"json_schema": {},
102-
"supported_sync_modes": [
103-
"full_refresh",
104-
"incremental"
105-
],
67+
"supported_sync_modes": ["full_refresh", "incremental"],
10668
"source_defined_cursor": true,
107-
"default_cursor_field": [
108-
"date"
109-
]
69+
"default_cursor_field": ["date"]
11070
},
11171
"sync_mode": "incremental",
112-
"cursor_field": [
113-
"date"
114-
],
72+
"cursor_field": ["date"],
11573
"destination_sync_mode": "append"
11674
}
11775
]

airbyte-integrations/connectors/source-google-search-console/integration_tests/invalid_config.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"site_urls": [
3-
"https://example1.com",
4-
"https://example2.com"
5-
],
2+
"site_urls": ["https://example1.com", "https://example2.com"],
63
"start_date": "2021-05-01",
74
"end_date": "2021-05-31",
85
"authorization": {

airbyte-integrations/connectors/source-google-search-console/sample_files/sample_config.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"site_urls": [
3-
"https://example1.com",
4-
"https://example2.com"
5-
],
2+
"site_urls": ["https://example1.com", "https://example2.com"],
63
"start_date": "2021-05-01",
74
"end_date": "2021-10-10",
85
"authorization": {

airbyte-integrations/connectors/source-google-search-console/source_google_search_console/schemas/search_analytics_all_fields.json

Lines changed: 11 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,72 +3,39 @@
33
"type": "object",
44
"properties": {
55
"site_url": {
6-
"type": [
7-
"null",
8-
"string"
9-
]
6+
"type": ["null", "string"]
107
},
118
"search_type": {
12-
"type": [
13-
"null",
14-
"string"
15-
]
9+
"type": ["null", "string"]
1610
},
1711
"date": {
18-
"type": [
19-
"null",
20-
"string"
21-
],
12+
"type": ["null", "string"],
2213
"format": "date"
2314
},
2415
"country": {
25-
"type": [
26-
"null",
27-
"string"
28-
]
16+
"type": ["null", "string"]
2917
},
3018
"device": {
31-
"type": [
32-
"null",
33-
"string"
34-
]
19+
"type": ["null", "string"]
3520
},
3621
"page": {
37-
"type": [
38-
"null",
39-
"string"
40-
]
22+
"type": ["null", "string"]
4123
},
4224
"query": {
43-
"type": [
44-
"null",
45-
"string"
46-
]
25+
"type": ["null", "string"]
4726
},
4827
"clicks": {
49-
"type": [
50-
"null",
51-
"integer"
52-
]
28+
"type": ["null", "integer"]
5329
},
5430
"impressions": {
55-
"type": [
56-
"null",
57-
"integer"
58-
]
31+
"type": ["null", "integer"]
5932
},
6033
"ctr": {
61-
"type": [
62-
"null",
63-
"number"
64-
],
34+
"type": ["null", "number"],
6535
"multipleOf": 1e-25
6636
},
6737
"position": {
68-
"type": [
69-
"null",
70-
"number"
71-
],
38+
"type": ["null", "number"],
7239
"multipleOf": 1e-25
7340
}
7441
}

0 commit comments

Comments
 (0)