Skip to content

Commit 298069a

Browse files
author
Matthew Gramigna
committed
Update csv config schema to include all properties
1 parent ece093b commit 298069a

File tree

1 file changed

+63
-3
lines changed

1 file changed

+63
-3
lines changed
Lines changed: 63 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
{
22
"$id": "csv-config",
33
"$schema": "https://json-schema.org/draft/2020-12/schema",
4-
"description": "Schema for CSV config files. TODO: Fill out the rest of this schema will all config properties",
4+
"description": "Schema for CSV config files",
55
"type": "object",
66
"properties": {
7+
"patientIdCsvPath": {
8+
"type": "string"
9+
},
10+
"notificationInfo": {
11+
"$ref": "#/$defs/notificationInfo"
12+
},
713
"extractors": {
814
"type": "array",
915
"items": {
@@ -12,15 +18,69 @@
1218
}
1319
},
1420
"$defs": {
21+
"notificationInfo": {
22+
"type": "object",
23+
"properties": {
24+
"host": {
25+
"type": "string",
26+
"format": "hostname"
27+
},
28+
"port": {
29+
"type": "integer"
30+
},
31+
"from": {
32+
"type": "string"
33+
},
34+
"to": {
35+
"type": "string",
36+
"format": "email"
37+
},
38+
"tlsRejectUnauthorized": {
39+
"type": "boolean"
40+
}
41+
},
42+
"required": [
43+
"host",
44+
"port",
45+
"from",
46+
"to"
47+
]
48+
},
1549
"extractor": {
1650
"type": "object",
1751
"properties": {
52+
"label": {
53+
"type": "string"
54+
},
55+
"type": {
56+
"type": "string"
57+
},
58+
"constructorArgs": {
59+
"$ref": "#/$defs/constructorArgs"
60+
}
61+
}
62+
},
63+
"constructorArgs": {
64+
"type": "object",
65+
"properties": {
66+
"filePath": {
67+
"type": "string"
68+
},
69+
"clinicalSiteID": {
70+
"type": "string"
71+
},
72+
"clinicalSiteSystem": {
73+
"type": "string"
74+
},
1875
"type": {
1976
"type": "string"
2077
}
2178
},
22-
"required": ["type"]
79+
"required": ["filePath"]
2380
}
2481
},
25-
"required": ["extractors"]
82+
"required": [
83+
"extractors",
84+
"patientIdCsvPath"
85+
]
2686
}

0 commit comments

Comments
 (0)