-
Notifications
You must be signed in to change notification settings - Fork 20
/
dca_config.schema.json
200 lines (200 loc) · 6.23 KB
/
dca_config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
{
"title": "Configuration for individual DCCs in mtDCA",
"description": "Configuration options for a specific DCC in mtDCA",
"required": [ "dcc", "dca", "schematic" ],
"additionalProperties": false,
"properties": {
"dcc": {
"description": "DCC parameters",
"type": "object",
"required": [
"name",
"synapse_asset_view",
"data_model_url",
"data_model_info",
"template_menu_config_file",
"logo_location",
"logo_link",
"dcc_help_link",
"portal_help_link"
],
"properties": {
"name": {
"description": "Name of the DCC",
"type": "string"
},
"synapse_asset_view": {
"description": "Synapse ID of the DCC's main asset view",
"type": "string",
"pattern": "^syn[0-9]+$"
},
"data_model_url": {
"description": "URL to the DCC's data model",
"type": "string",
"format": "uri-reference"
},
"data_model_info": {
"description": "URL to release notes about the data model",
"type": "string",
"format": "uri-reference"
},
"template_menu_config_file": {
"description": "Path to the template dropdown menu config",
"type": "string"
},
"logo_location": {
"description": "URL to the DCC's logo",
"type": "string"
},
"logo_link": {
"description": "Link for the DCC",
"type": "string",
"format": "uri-reference"
},
"dcc_help_link": {
"description": "URL DCC users can seek help",
"type": "string"
},
"portal_help_link": {
"description": "URL for portal information",
"type": "string"
}
}
},
"dca": {
"description": "DCA configuration options",
"type": "object",
"required": [
"use_compliance_dashboard",
"primary_col",
"secondary_col",
"sidebar_col"
],
"properties": {
"use_compliance_dashboard": {
"description": "Display the compliance dashboard. Unavaible at the moment",
"type": "boolean"
},
"primary_col": {
"description": "center header color hex code",
"type": "string",
"pattern": "^#[0-9]+"
},
"secondary_col": {
"description": "right header color hex code",
"type": "string",
"pattern": "^#[0-9]+"
},
"sidebar_col": {
"description": "left header color hex code",
"type": "string",
"pattern": "^#[0-9]+"
}
}
},
"schematic": {
"description": "Schematic configuration options",
"type": "object",
"required": [
"global",
"manifest_generate",
"model_validate",
"model_submit"
],
"additionalProperties": false,
"properties": {
"global": {
"description": "Parameters common to many schematic commands",
"type": "object",
"required": [ "data_model_labels" ],
"properties": {
"data_model_labels": {
"description": "Source for labels of the data model",
"type": "string",
"enum": [ "class_label", "display_label" ]
}
}
},
"manifest_generate": {
"description": "Parameters to pass to Schematic manifest generate",
"type": "object",
"required": [ "output_format", "use_annotations" ],
"additionalProperties": false,
"properties": {
"output_format": {
"description": "Output type for downloaded manifests. excel or google_sheet",
"type": "string",
"enum": [ "excel", "google_sheet" ]
},
"use_annotations": {
"description": "Schematic manifest get option",
"type": "boolean"
}
}
},
"model_validate": {
"description": "Parameteres to pass to Schematic model validate",
"type": "object",
"required": [
"restrict_rules",
"enable_cross_manifest_validation"
],
"additionalProperties": false,
"properties": {
"restrict_rules": {
"description": "Schematic model validate option",
"type": "boolean"
},
"enable_cross_manifest_validation": {
"description": "Use cross manifest validation",
"type": "boolean"
}
}
},
"model_submit": {
"description": "Parameters to pass Schematic model submit",
"type": "object",
"required": [
"table_manipulation",
"manifest_record_type",
"hide_blanks",
"annotation_keys",
"table_column_names",
"file_annotations_upload"
],
"additionalProperties": false,
"properties": {
"annotation_keys": {
"description": "Schematic model submit option",
"type": "string",
"enum": [ "class_label", "display_label" ]
},
"table_column_names": {
"description": "Schematic model submit option",
"type": "string",
"enum": [ "class_label", "display_label", "display_name" ]
},
"table_manipulation": {
"description": "Schematic model submit option",
"type": "string",
"enum": [ "replace", "upsert" ]
},
"manifest_record_type": {
"description": "Schematic model submit option",
"type": "string",
"enum": [ "file_only", "table_and_file", "table_file_and_entities", "file_and_entities" ]
},
"hide_blanks": {
"description": "Schematic model submit option",
"type": "boolean"
},
"file_annotations_upload": {
"description": "Choose to add annotations to files during upload",
"type": "boolean"
}
}
}
}
}
}
}