Skip to content

Commit 586f7d6

Browse files
committed
refactor: rename type to source_type in fixtures
- Renamed "type" to "source_type" - Consistent naming across files
1 parent 4a0647d commit 586f7d6

File tree

2 files changed

+54
-34
lines changed

2 files changed

+54
-34
lines changed

lib/src/fixtures/headlines.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"id": "s1a2b3c4-d5e6-f789-0123-456789abcdef",
1111
"name": "Very Good Ventures Blog",
1212
"url": "https://vgv.dev/blog",
13-
"type": "blog",
13+
"source_type": "blog",
1414
"action": {
1515
"type": "open_internal_content",
1616
"content_id": "s1a2b3c4-d5e6-f789-0123-456789abcdef",
@@ -44,7 +44,7 @@
4444
"id": "s2b3c4d5-e6f7-a890-1234-567890abcdef",
4545
"name": "Flutter Dev",
4646
"url": "https://flutter.dev",
47-
"type": "specializedPublisher",
47+
"source_type": "specialized_publisher",
4848
"action": {
4949
"type": "open_internal_content",
5050
"content_id": "s2b3c4d5-e6f7-a890-1234-567890abcdef",
@@ -78,7 +78,7 @@
7878
"id": "s3c4d5e6-f7a8-b901-c234-d56789abcdef",
7979
"name": "TechCrunch",
8080
"url": "https://techcrunch.com/",
81-
"type": "specializedPublisher",
81+
"source_type": "specialized_publisher",
8282
"action": {
8383
"type": "open_internal_content",
8484
"content_id": "s3c4d5e6-f7a8-b901-c234-d56789abcdef",
@@ -112,7 +112,7 @@
112112
"id": "s2b3c4d5-e6f7-a890-1234-567890abcdef",
113113
"name": "Flutter Dev",
114114
"url": "https://flutter.dev",
115-
"type": "specializedPublisher",
115+
"source_type": "specialized_publisher",
116116
"action": {
117117
"type": "open_internal_content",
118118
"content_id": "s2b3c4d5-e6f7-a890-1234-567890abcdef",
@@ -146,7 +146,7 @@
146146
"id": "s4d5e6f7-a8b9-c012-d345-e67890abcdef",
147147
"name": "BBC News",
148148
"url": "https://www.bbc.com/news",
149-
"type": "nationalNewsOutlet",
149+
"source_type": "national_news_outlet",
150150
"language": "en",
151151
"headquarters": {
152152
"id": "country-gb",
@@ -192,7 +192,7 @@
192192
"id": "s4d5e6f7-a8b9-c012-d345-e67890abcdef",
193193
"name": "BBC News",
194194
"url": "https://www.bbc.com/news",
195-
"type": "nationalNewsOutlet",
195+
"source_type": "national_news_outlet",
196196
"language": "en",
197197
"headquarters": {
198198
"id": "country-gb",
@@ -238,7 +238,7 @@
238238
"id": "s3c4d5e6-f7a8-b901-c234-d56789abcdef",
239239
"name": "TechCrunch",
240240
"url": "https://techcrunch.com/",
241-
"type": "specializedPublisher",
241+
"source_type": "specialized_publisher",
242242
"action": {
243243
"type": "open_internal_content",
244244
"content_id": "s3c4d5e6-f7a8-b901-c234-d56789abcdef",
@@ -272,7 +272,7 @@
272272
"id": "s2b3c4d5-e6f7-a890-1234-567890abcdef",
273273
"name": "Flutter Dev",
274274
"url": "https://flutter.dev",
275-
"type": "specializedPublisher",
275+
"source_type": "specialized_publisher",
276276
"action": {
277277
"type": "open_internal_content",
278278
"content_id": "s2b3c4d5-e6f7-a890-1234-567890abcdef",
@@ -306,7 +306,7 @@
306306
"id": "s3c4d5e6-f7a8-b901-c234-d56789abcdef",
307307
"name": "TechCrunch",
308308
"url": "https://techcrunch.com/",
309-
"type": "specializedPublisher",
309+
"source_type": "specialized_publisher",
310310
"action": {
311311
"type": "open_internal_content",
312312
"content_id": "s3c4d5e6-f7a8-b901-c234-d56789abcdef",
@@ -340,7 +340,7 @@
340340
"id": "s4d5e6f7-a8b9-c012-d345-e67890abcdef",
341341
"name": "BBC News",
342342
"url": "https://www.bbc.com/news",
343-
"type": "nationalNewsOutlet",
343+
"source_type": "national_news_outlet",
344344
"language": "en",
345345
"headquarters": {
346346
"id": "country-gb",
@@ -386,7 +386,7 @@
386386
"id": "s1a2b3c4-d5e6-f789-0123-456789abcdef",
387387
"name": "Very Good Ventures Blog",
388388
"url": "https://vgv.dev/blog",
389-
"type": "blog",
389+
"source_type": "blog",
390390
"action": {
391391
"type": "open_internal_content",
392392
"content_id": "s1a2b3c4-d5e6-f789-0123-456789abcdef",
@@ -420,7 +420,7 @@
420420
"id": "s2b3c4d5-e6f7-a890-1234-567890abcdef",
421421
"name": "Flutter Dev",
422422
"url": "https://flutter.dev",
423-
"type": "specializedPublisher",
423+
"source_type": "specialized_publisher",
424424
"action": {
425425
"type": "open_internal_content",
426426
"content_id": "s2b3c4d5-e6f7-a890-1234-567890abcdef",
@@ -454,7 +454,7 @@
454454
"id": "s3c4d5e6-f7a8-b901-c234-d56789abcdef",
455455
"name": "TechCrunch",
456456
"url": "https://techcrunch.com/",
457-
"type": "specializedPublisher",
457+
"source_type": "specialized_publisher",
458458
"action": {
459459
"type": "open_internal_content",
460460
"content_id": "s3c4d5e6-f7a8-b901-c234-d56789abcdef",
@@ -488,7 +488,7 @@
488488
"id": "s4d5e6f7-a8b9-c012-d345-e67890abcdef",
489489
"name": "BBC News",
490490
"url": "https://www.bbc.com/news",
491-
"type": "nationalNewsOutlet",
491+
"source_type": "national_news_outlet",
492492
"language": "en",
493493
"headquarters": {
494494
"id": "country-gb",
@@ -534,7 +534,7 @@
534534
"id": "s1a2b3c4-d5e6-f789-0123-456789abcdef",
535535
"name": "Very Good Ventures Blog",
536536
"url": "https://vgv.dev/blog",
537-
"type": "blog",
537+
"source_type": "blog",
538538
"action": {
539539
"type": "open_internal_content",
540540
"content_id": "s1a2b3c4-d5e6-f789-0123-456789abcdef",
@@ -568,7 +568,7 @@
568568
"id": "s2b3c4d5-e6f7-a890-1234-567890abcdef",
569569
"name": "Flutter Dev",
570570
"url": "https://flutter.dev",
571-
"type": "specializedPublisher",
571+
"source_type": "specialized_publisher",
572572
"action": {
573573
"type": "open_internal_content",
574574
"content_id": "s2b3c4d5-e6f7-a890-1234-567890abcdef",
@@ -762,7 +762,7 @@
762762
"id": "s3c4d5e6-f7a8-b901-c234-d56789abcdef",
763763
"name": "TechCrunch",
764764
"url": "https://techcrunch.com/",
765-
"type": "specializedPublisher",
765+
"source_type": "specialized_publisher",
766766
"action": {
767767
"type": "open_internal_content",
768768
"content_id": "s3c4d5e6-f7a8-b901-c234-d56789abcdef",
@@ -796,7 +796,7 @@
796796
"id": "s4d5e6f7-a8b9-c012-d345-e67890abcdef",
797797
"name": "BBC News",
798798
"url": "https://www.bbc.com/news",
799-
"type": "nationalNewsOutlet",
799+
"source_type": "national_news_outlet",
800800
"language": "en",
801801
"headquarters": {
802802
"id": "country-gb",
@@ -1833,7 +1833,7 @@
18331833
"name": "Very Good Ventures Blog",
18341834
"description": "Insights from the Very Good Ventures team.",
18351835
"url": "https://vgv.dev/blog",
1836-
"type": "blog",
1836+
"source_type": "blog",
18371837
"language": "en",
18381838
"headquarters": null,
18391839
"action": {
@@ -1871,7 +1871,7 @@
18711871
"name": "Very Good Ventures Blog",
18721872
"description": "Insights from the Very Good Ventures team.",
18731873
"url": "https://vgv.dev/blog",
1874-
"type": "blog",
1874+
"source_type": "blog",
18751875
"language": "en",
18761876
"headquarters": null,
18771877
"action": {
@@ -1909,7 +1909,7 @@
19091909
"name": "Very Good Ventures Blog",
19101910
"description": "Insights from the Very Good Ventures team.",
19111911
"url": "https://vgv.dev/blog",
1912-
"type": "blog",
1912+
"source_type": "blog",
19131913
"language": "en",
19141914
"headquarters": null,
19151915
"action": {
@@ -1947,7 +1947,7 @@
19471947
"name": "Flutter Dev",
19481948
"description": "Official documentation and news for the Flutter framework.",
19491949
"url": "https://flutter.dev",
1950-
"type": "specializedPublisher",
1950+
"source_type": "specialized_publisher",
19511951
"language": "fr",
19521952
"headquarters": null,
19531953
"action": {
@@ -1985,7 +1985,7 @@
19851985
"name": "Flutter Dev",
19861986
"description": "Official documentation and news for the Flutter framework.",
19871987
"url": "https://flutter.dev",
1988-
"type": "specializedPublisher",
1988+
"source_type": "specialized_publisher",
19891989
"language": "fr",
19901990
"headquarters": null,
19911991
"action": {
@@ -2023,7 +2023,7 @@
20232023
"name": "Flutter Dev",
20242024
"description": "Official documentation and news for the Flutter framework.",
20252025
"url": "https://flutter.dev",
2026-
"type": "specializedPublisher",
2026+
"source_type": "specialized_publisher",
20272027
"language": "fr",
20282028
"headquarters": null,
20292029
"action": {
@@ -2061,7 +2061,7 @@
20612061
"name": "TechCrunch",
20622062
"description": "Startup and technology news.",
20632063
"url": "https://techcrunch.com/",
2064-
"type": "specializedPublisher",
2064+
"source_type": "specialized_publisher",
20652065
"language": "en",
20662066
"headquarters": {
20672067
"id": "country-us",
@@ -2109,7 +2109,7 @@
21092109
"name": "TechCrunch",
21102110
"description": "Startup and technology news.",
21112111
"url": "https://techcrunch.com/",
2112-
"type": "specializedPublisher",
2112+
"source_type": "specialized_publisher",
21132113
"language": "en",
21142114
"headquarters": {
21152115
"id": "country-us",
@@ -2157,7 +2157,7 @@
21572157
"name": "BBC News",
21582158
"description": "British public service broadcaster.",
21592159
"url": "https://www.bbc.com/news",
2160-
"type": "nationalNewsOutlet",
2160+
"source_type": "national_news_outlet",
21612161
"language": "en",
21622162
"headquarters": {
21632163
"id": "country-gb",
@@ -2205,7 +2205,7 @@
22052205
"name": "BBC News",
22062206
"description": "British public service broadcaster.",
22072207
"url": "https://www.bbc.com/news",
2208-
"type": "nationalNewsOutlet",
2208+
"source_type": "national_news_outlet",
22092209
"language": "en",
22102210
"headquarters": {
22112211
"id": "country-gb",

lib/src/fixtures/sources.json

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@
44
"name": "Very Good Ventures Blog",
55
"description": "Insights from the Very Good Ventures team.",
66
"url": "https://vgv.dev/blog",
7-
"type": "blog",
7+
"source_type": "blog",
88
"language": "en",
9-
"headquarters": null,
9+
"headquarters": {
10+
"id": "country-us",
11+
"iso_code": "US",
12+
"name": "United States",
13+
"flag_url": "https://example.com/flags/us.png",
14+
"action": {
15+
"type": "open_internal_content",
16+
"content_id": "country-us",
17+
"content_type": "country"
18+
}
19+
},
1020
"action": {
1121
"type": "open_internal_content",
1222
"content_id": "s1a2b3c4-d5e6-f789-0123-456789abcdef",
@@ -18,9 +28,19 @@
1828
"name": "Flutter Dev",
1929
"description": "Official documentation and news for the Flutter framework.",
2030
"url": "https://flutter.dev",
21-
"type": "specializedPublisher",
31+
"source_type": "specialized_publisher",
2232
"language": "fr",
23-
"headquarters": null,
33+
"headquarters": {
34+
"id": "country-us",
35+
"iso_code": "US",
36+
"name": "United States",
37+
"flag_url": "https://example.com/flags/us.png",
38+
"action": {
39+
"type": "open_internal_content",
40+
"content_id": "country-us",
41+
"content_type": "country"
42+
}
43+
},
2444
"action": {
2545
"type": "open_internal_content",
2646
"content_id": "s2b3c4d5-e6f7-a890-1234-567890abcdef",
@@ -32,7 +52,7 @@
3252
"name": "TechCrunch",
3353
"description": "Startup and technology news.",
3454
"url": "https://techcrunch.com/",
35-
"type": "specializedPublisher",
55+
"source_type": "specialized_publisher",
3656
"language": "en",
3757
"headquarters": {
3858
"id": "country-us",
@@ -56,7 +76,7 @@
5676
"name": "BBC News",
5777
"description": "British public service broadcaster.",
5878
"url": "https://www.bbc.com/news",
59-
"type": "nationalNewsOutlet",
79+
"source_type": "national_news_outlet",
6080
"language": "en",
6181
"headquarters": {
6282
"id": "country-gb",

0 commit comments

Comments
 (0)