Skip to content

Commit 7ebe9bc

Browse files
committed
Add enums for new codelists
These can be synced automatically using OpenDataServices/compile-to-json-schema#33
1 parent 789e355 commit 7ebe9bc

File tree

1 file changed

+60
-4
lines changed

1 file changed

+60
-4
lines changed

schema/360-giving-schema.json

Lines changed: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,14 +1226,42 @@
12261226
"title": "Primary Grant Reason",
12271227
"description": "A code referring to the reason(s) for a grant to an individual. The value for this field should be drawn from the Grant to Individuals Reason codelist",
12281228
"codelist": "grantToIndividualsReason.csv",
1229-
"openCodelist": false
1229+
"openCodelist": false,
1230+
"enum": [
1231+
"GTIR010",
1232+
"GTIR020",
1233+
"GTIR030",
1234+
"GTIR040",
1235+
"GTIR050",
1236+
"GTIR060",
1237+
"GTIR070",
1238+
"GTIR080",
1239+
"GTIR090",
1240+
"GTIR100",
1241+
"GTIR110",
1242+
"GTIR120"
1243+
]
12301244
},
12311245
"secondaryGrantReason": {
12321246
"type": "string",
12331247
"title": "Secondary Grant Reason",
12341248
"description": "A code referring to the reason(s) for a grant to an individual. The value for this field should be drawn from the Grant to Individuals Reason codelist",
12351249
"codelist": "grantToIndividualsReason.csv",
1236-
"openCodelist": false
1250+
"openCodelist": false,
1251+
"enum": [
1252+
"GTIR010",
1253+
"GTIR020",
1254+
"GTIR030",
1255+
"GTIR040",
1256+
"GTIR050",
1257+
"GTIR060",
1258+
"GTIR070",
1259+
"GTIR080",
1260+
"GTIR090",
1261+
"GTIR100",
1262+
"GTIR110",
1263+
"GTIR120"
1264+
]
12371265
},
12381266
"grantPurpose": {
12391267
"type": "array",
@@ -1242,7 +1270,26 @@
12421270
"items": {
12431271
"type": "string",
12441272
"codelist": "grantToIndividualsPurpose.csv",
1245-
"openCodelist": false
1273+
"openCodelist": false,
1274+
"enum": [
1275+
"GTIP010",
1276+
"GTIP020",
1277+
"GTIP030",
1278+
"GTIP040",
1279+
"GTIP050",
1280+
"GTIP060",
1281+
"GTIP070",
1282+
"GTIP080",
1283+
"GTIP090",
1284+
"GTIP100",
1285+
"GTIP110",
1286+
"GTIP120",
1287+
"GTIP130",
1288+
"GTIP140",
1289+
"GTIP150",
1290+
"GTIP160",
1291+
"GTIP170"
1292+
]
12461293
}
12471294
}
12481295
}
@@ -1408,7 +1455,16 @@
14081455
"description": "A code referring to the type of regranting process that this grant represents. The value for this field should be drawn from the Regrant Type codelist",
14091456
"type": "string",
14101457
"codelist": "regrantType.csv",
1411-
"openCodelist": false
1458+
"openCodelist": false,
1459+
"enum": [
1460+
"FRG010",
1461+
"FRG020",
1462+
"FRG030",
1463+
"FRG040",
1464+
"FRG050",
1465+
"FRG060",
1466+
"FRG070"
1467+
]
14121468
}
14131469
}
14141470
}

0 commit comments

Comments
 (0)