Skip to content

Commit c772d8a

Browse files
committed
Some example data has bad foriegn key values & missing values
#530
1 parent 6cad2f1 commit c772d8a

14 files changed

+105
-71
lines changed

datapackage.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@
18381838
"required": false,
18391839
"unique": false
18401840
},
1841-
"example": "af69894e-7bed-11ef-a85c-07e0918a608c",
1841+
"example": "e94c9f38-1e8f-4564-91d4-d53501ab1765",
18421842
"core": "Y"
18431843
},
18441844
{
@@ -2783,7 +2783,7 @@
27832783
"required": true,
27842784
"unique": false
27852785
},
2786-
"example": "f75b808e-7bdb-11ef-afaa-ab00a77dc5c4"
2786+
"example": "ac148810-d857-441c-9679-408f346de14b"
27872787
},
27882788
{
27892789
"name": "unit_id",
@@ -2795,7 +2795,7 @@
27952795
"required": true,
27962796
"unique": false
27972797
},
2798-
"example": "187a37a2-7b40-11ef-9790-dbf7623d4407"
2798+
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
27992799
},
28002800
{
28012801
"name": "available",
@@ -2984,7 +2984,8 @@
29842984
"constraints": {
29852985
"required": false,
29862986
"unique": false
2987-
}
2987+
},
2988+
"example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610"
29882989
},
29892990
{
29902991
"name": "service_id",
@@ -2995,7 +2996,8 @@
29952996
"constraints": {
29962997
"required": false,
29972998
"unique": false
2998-
}
2999+
},
3000+
"example": "ac148810-d857-441c-9679-408f346de14b"
29993001
}
30003002
],
30013003
"foreignKeys": [

examples/csv/service_areas.csv

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
id,service_id,service_at_location_id,name,description,extent,extent_type,uri
2-
381c64f1-a724-4884-9c21-ac96c21cca3e,ac148810-d857-441c-9679-408f346de14b,af69894e-7bed-11ef-a85c-07e0918a608c,The service is available to all residents of the MyCity area. We provide the service in our offices or via video conferencing to any who can provide evidence of their residency.,"The service is available to all residents of the MyCity area, including all postcodes starting with AB1, AB2, and AB3",extent,geojson,http://example.com
2+
381c64f1-a724-4884-9c21-ac96c21cca3e,ac148810-d857-441c-9679-408f346de14b,e94c9f38-1e8f-4564-91d4-d53501ab1765,The service is available to all residents of the MyCity area. We provide the service in our offices or via video conferencing to any who can provide evidence of their residency.,"The service is available to all residents of the MyCity area, including all postcodes starting with AB1, AB2, and AB3",extent,geojson,http://example.com

examples/csv/service_capacity.csv

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
id,service_id,unit_id,available,maximum,description,updated
2-
8896b788-7b3e-11ef-8db9-7f3d040352b3,f75b808e-7bdb-11ef-afaa-ab00a77dc5c4,187a37a2-7b40-11ef-9790-dbf7623d4407,12,10,Beds available for people experiencing homelessness.,2024-09-25T14:23:06.5+01:00
2+
8896b788-7b3e-11ef-8db9-7f3d040352b3,ac148810-d857-441c-9679-408f346de14b,8896b788-7b3e-11ef-8db9-7f3d040352b3,12,10,Beds available for people experiencing homelessness.,2024-09-25T14:23:06.5+01:00

examples/csv/url.csv

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
id,label,url
2-
30951f94-7b24-11ef-ba1b-a79405d4dcaa,Website,https://example.org
1+
id,label,url,organization_id,service_id
2+
30951f94-7b24-11ef-ba1b-a79405d4dcaa,Website,https://example.org,d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610,ac148810-d857-441c-9679-408f346de14b

schema/compiled/organization.json

+16-10
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@
136136
"description": "The identifier for the organization associated with this URL object",
137137
"constraints": {
138138
"unique": false
139-
}
139+
},
140+
"example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610"
140141
},
141142
"service_id": {
142143
"name": "service_id",
@@ -146,7 +147,8 @@
146147
"description": "The identifier for the service associated with this URL object",
147148
"constraints": {
148149
"unique": false
149-
}
150+
},
151+
"example": "ac148810-d857-441c-9679-408f346de14b"
150152
},
151153
"attributes": {
152154
"name": "attributes",
@@ -18585,7 +18587,8 @@
1858518587
"description": "The identifier for the organization associated with this URL object",
1858618588
"constraints": {
1858718589
"unique": false
18588-
}
18590+
},
18591+
"example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610"
1858918592
},
1859018593
"service_id": {
1859118594
"name": "service_id",
@@ -18595,7 +18598,8 @@
1859518598
"description": "The identifier for the service associated with this URL object",
1859618599
"constraints": {
1859718600
"unique": false
18598-
}
18601+
},
18602+
"example": "ac148810-d857-441c-9679-408f346de14b"
1859918603
},
1860018604
"attributes": {
1860118605
"name": "attributes",
@@ -22555,7 +22559,7 @@
2255522559
"constraints": {
2255622560
"unique": false
2255722561
},
22558-
"example": "af69894e-7bed-11ef-a85c-07e0918a608c",
22562+
"example": "e94c9f38-1e8f-4564-91d4-d53501ab1765",
2255922563
"core": "Y"
2256022564
},
2256122565
"name": {
@@ -23530,7 +23534,7 @@
2353023534
"constraints": {
2353123535
"unique": false
2353223536
},
23533-
"example": "af69894e-7bed-11ef-a85c-07e0918a608c",
23537+
"example": "e94c9f38-1e8f-4564-91d4-d53501ab1765",
2353423538
"core": "Y"
2353523539
},
2353623540
"name": {
@@ -41305,7 +41309,8 @@
4130541309
"description": "The identifier for the organization associated with this URL object",
4130641310
"constraints": {
4130741311
"unique": false
41308-
}
41312+
},
41313+
"example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610"
4130941314
},
4131041315
"service_id": {
4131141316
"name": "service_id",
@@ -41315,7 +41320,8 @@
4131541320
"description": "The identifier for the service associated with this URL object",
4131641321
"constraints": {
4131741322
"unique": false
41318-
}
41323+
},
41324+
"example": "ac148810-d857-441c-9679-408f346de14b"
4131941325
},
4132041326
"attributes": {
4132141327
"name": "attributes",
@@ -65930,7 +65936,7 @@
6593065936
"constraints": {
6593165937
"unique": false
6593265938
},
65933-
"example": "f75b808e-7bdb-11ef-afaa-ab00a77dc5c4"
65939+
"example": "ac148810-d857-441c-9679-408f346de14b"
6593465940
},
6593565941
"unit": {
6593665942
"name": "unit",
@@ -66817,7 +66823,7 @@
6681766823
"constraints": {
6681866824
"unique": false
6681966825
},
66820-
"example": "187a37a2-7b40-11ef-9790-dbf7623d4407"
66826+
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
6682166827
},
6682266828
"available": {
6682366829
"name": "available",

schema/compiled/organization_package.json

+16-10
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@
138138
"description": "The identifier for the organization associated with this URL object",
139139
"constraints": {
140140
"unique": false
141-
}
141+
},
142+
"example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610"
142143
},
143144
"service_id": {
144145
"name": "service_id",
@@ -148,7 +149,8 @@
148149
"description": "The identifier for the service associated with this URL object",
149150
"constraints": {
150151
"unique": false
151-
}
152+
},
153+
"example": "ac148810-d857-441c-9679-408f346de14b"
152154
},
153155
"attributes": {
154156
"name": "attributes",
@@ -18587,7 +18589,8 @@
1858718589
"description": "The identifier for the organization associated with this URL object",
1858818590
"constraints": {
1858918591
"unique": false
18590-
}
18592+
},
18593+
"example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610"
1859118594
},
1859218595
"service_id": {
1859318596
"name": "service_id",
@@ -18597,7 +18600,8 @@
1859718600
"description": "The identifier for the service associated with this URL object",
1859818601
"constraints": {
1859918602
"unique": false
18600-
}
18603+
},
18604+
"example": "ac148810-d857-441c-9679-408f346de14b"
1860118605
},
1860218606
"attributes": {
1860318607
"name": "attributes",
@@ -22557,7 +22561,7 @@
2255722561
"constraints": {
2255822562
"unique": false
2255922563
},
22560-
"example": "af69894e-7bed-11ef-a85c-07e0918a608c",
22564+
"example": "e94c9f38-1e8f-4564-91d4-d53501ab1765",
2256122565
"core": "Y"
2256222566
},
2256322567
"name": {
@@ -23532,7 +23536,7 @@
2353223536
"constraints": {
2353323537
"unique": false
2353423538
},
23535-
"example": "af69894e-7bed-11ef-a85c-07e0918a608c",
23539+
"example": "e94c9f38-1e8f-4564-91d4-d53501ab1765",
2353623540
"core": "Y"
2353723541
},
2353823542
"name": {
@@ -41307,7 +41311,8 @@
4130741311
"description": "The identifier for the organization associated with this URL object",
4130841312
"constraints": {
4130941313
"unique": false
41310-
}
41314+
},
41315+
"example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610"
4131141316
},
4131241317
"service_id": {
4131341318
"name": "service_id",
@@ -41317,7 +41322,8 @@
4131741322
"description": "The identifier for the service associated with this URL object",
4131841323
"constraints": {
4131941324
"unique": false
41320-
}
41325+
},
41326+
"example": "ac148810-d857-441c-9679-408f346de14b"
4132141327
},
4132241328
"attributes": {
4132341329
"name": "attributes",
@@ -65932,7 +65938,7 @@
6593265938
"constraints": {
6593365939
"unique": false
6593465940
},
65935-
"example": "f75b808e-7bdb-11ef-afaa-ab00a77dc5c4"
65941+
"example": "ac148810-d857-441c-9679-408f346de14b"
6593665942
},
6593765943
"unit": {
6593865944
"name": "unit",
@@ -66819,7 +66825,7 @@
6681966825
"constraints": {
6682066826
"unique": false
6682166827
},
66822-
"example": "187a37a2-7b40-11ef-9790-dbf7623d4407"
66828+
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
6682366829
},
6682466830
"available": {
6682566831
"name": "available",

schema/compiled/service.json

+12-8
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@
146146
"description": "The identifier for the organization associated with this URL object",
147147
"constraints": {
148148
"unique": false
149-
}
149+
},
150+
"example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610"
150151
},
151152
"service_id": {
152153
"name": "service_id",
@@ -156,7 +157,8 @@
156157
"description": "The identifier for the service associated with this URL object",
157158
"constraints": {
158159
"unique": false
159-
}
160+
},
161+
"example": "ac148810-d857-441c-9679-408f346de14b"
160162
},
161163
"attributes": {
162164
"name": "attributes",
@@ -4116,7 +4118,7 @@
41164118
"constraints": {
41174119
"unique": false
41184120
},
4119-
"example": "af69894e-7bed-11ef-a85c-07e0918a608c",
4121+
"example": "e94c9f38-1e8f-4564-91d4-d53501ab1765",
41204122
"core": "Y"
41214123
},
41224124
"name": {
@@ -5091,7 +5093,7 @@
50915093
"constraints": {
50925094
"unique": false
50935095
},
5094-
"example": "af69894e-7bed-11ef-a85c-07e0918a608c",
5096+
"example": "e94c9f38-1e8f-4564-91d4-d53501ab1765",
50955097
"core": "Y"
50965098
},
50975099
"name": {
@@ -22866,7 +22868,8 @@
2286622868
"description": "The identifier for the organization associated with this URL object",
2286722869
"constraints": {
2286822870
"unique": false
22869-
}
22871+
},
22872+
"example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610"
2287022873
},
2287122874
"service_id": {
2287222875
"name": "service_id",
@@ -22876,7 +22879,8 @@
2287622879
"description": "The identifier for the service associated with this URL object",
2287722880
"constraints": {
2287822881
"unique": false
22879-
}
22882+
},
22883+
"example": "ac148810-d857-441c-9679-408f346de14b"
2288022884
},
2288122885
"attributes": {
2288222886
"name": "attributes",
@@ -47491,7 +47495,7 @@
4749147495
"constraints": {
4749247496
"unique": false
4749347497
},
47494-
"example": "f75b808e-7bdb-11ef-afaa-ab00a77dc5c4"
47498+
"example": "ac148810-d857-441c-9679-408f346de14b"
4749547499
},
4749647500
"unit": {
4749747501
"name": "unit",
@@ -48378,7 +48382,7 @@
4837848382
"constraints": {
4837948383
"unique": false
4838048384
},
48381-
"example": "187a37a2-7b40-11ef-9790-dbf7623d4407"
48385+
"example": "8896b788-7b3e-11ef-8db9-7f3d040352b3"
4838248386
},
4838348387
"available": {
4838448388
"name": "available",

0 commit comments

Comments
 (0)