@dmptool/types 1.2.6 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/README.md +1 -1
  2. package/dist/answers/__tests__/defaults.spec.js +216 -0
  3. package/dist/answers/answer.d.ts +29 -14
  4. package/dist/answers/answer.js +11 -5
  5. package/dist/answers/dateAnswers.d.ts +20 -47
  6. package/dist/answers/dateAnswers.js +20 -10
  7. package/dist/answers/graphQLAnswers.d.ts +48 -120
  8. package/dist/answers/graphQLAnswers.js +46 -21
  9. package/dist/answers/index.d.ts +155 -1439
  10. package/dist/answers/index.js +26 -1
  11. package/dist/answers/numberAnswers.d.ts +38 -92
  12. package/dist/answers/numberAnswers.js +38 -19
  13. package/dist/answers/optionBasedAnswers.d.ts +42 -87
  14. package/dist/answers/optionBasedAnswers.js +37 -21
  15. package/dist/answers/tableAnswers.d.ts +348 -3032
  16. package/dist/answers/tableAnswers.js +25 -61
  17. package/dist/answers/textAnswers.d.ts +32 -68
  18. package/dist/answers/textAnswers.js +30 -17
  19. package/dist/dmp/__tests__/commonStandard.spec.d.ts +1 -0
  20. package/dist/dmp/__tests__/commonStandard.spec.js +210 -0
  21. package/dist/dmp/__tests__/extensions.spec.d.ts +1 -0
  22. package/dist/dmp/__tests__/extensions.spec.js +99 -0
  23. package/dist/dmp/extension.d.ts +1006 -0
  24. package/dist/dmp/extension.js +234 -0
  25. package/dist/dmp/index.d.ts +9 -0
  26. package/dist/dmp/index.js +23 -0
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.js +1 -0
  29. package/dist/questions/__tests__/dateQuestions.spec.js +3 -0
  30. package/dist/questions/__tests__/defaults.spec.d.ts +1 -0
  31. package/dist/questions/__tests__/defaults.spec.js +668 -0
  32. package/dist/questions/__tests__/optionBasedQuestions.spec.js +3 -2
  33. package/dist/questions/__tests__/tableQuestion.spec.js +22 -23
  34. package/dist/questions/__tests__/textQuestions.spec.js +32 -0
  35. package/dist/questions/dateQuestions.d.ts +45 -191
  36. package/dist/questions/dateQuestions.js +26 -23
  37. package/dist/questions/graphQLQuestions.d.ts +262 -556
  38. package/dist/questions/graphQLQuestions.js +225 -223
  39. package/dist/questions/index.d.ts +670 -7441
  40. package/dist/questions/index.js +26 -1
  41. package/dist/questions/numberQuestions.d.ts +85 -331
  42. package/dist/questions/numberQuestions.js +50 -36
  43. package/dist/questions/optionBasedQuestions.d.ts +83 -290
  44. package/dist/questions/optionBasedQuestions.js +58 -41
  45. package/dist/questions/question.d.ts +72 -35
  46. package/dist/questions/question.js +14 -5
  47. package/dist/questions/tableQuestions.d.ts +2228 -9599
  48. package/dist/questions/tableQuestions.js +185 -192
  49. package/dist/questions/textQuestions.d.ts +70 -226
  50. package/dist/questions/textQuestions.js +31 -31
  51. package/dist/schemas/affiliationSearchAnswer.schema.json +35 -33
  52. package/dist/schemas/affiliationSearchQuestion.schema.json +124 -122
  53. package/dist/schemas/anyAnswer.schema.json +1229 -408
  54. package/dist/schemas/anyQuestion.schema.json +4312 -2023
  55. package/dist/schemas/anyTableColumnAnswer.schema.json +535 -314
  56. package/dist/schemas/anyTableColumnQuestion.schema.json +1309 -874
  57. package/dist/schemas/booleanAnswer.schema.json +22 -23
  58. package/dist/schemas/booleanQuestion.schema.json +39 -43
  59. package/dist/schemas/checkboxesAnswer.schema.json +27 -28
  60. package/dist/schemas/checkboxesQuestion.schema.json +63 -62
  61. package/dist/schemas/currencyAnswer.schema.json +22 -23
  62. package/dist/schemas/currencyQuestion.schema.json +57 -54
  63. package/dist/schemas/dateAnswer.schema.json +22 -23
  64. package/dist/schemas/dateQuestion.schema.json +50 -49
  65. package/dist/schemas/dateRangeAnswer.schema.json +35 -33
  66. package/dist/schemas/dateRangeQuestion.schema.json +87 -78
  67. package/dist/schemas/dmp.schema.json +2070 -0
  68. package/dist/schemas/dmpExtension.schema.json +1874 -0
  69. package/dist/schemas/emailAnswer.schema.json +22 -23
  70. package/dist/schemas/emailQuestion.schema.json +55 -53
  71. package/dist/schemas/licenseSearchAnswer.schema.json +40 -38
  72. package/dist/schemas/licenseSearchQuestion.schema.json +122 -146
  73. package/dist/schemas/metadataStandardSearchAnswer.schema.json +40 -38
  74. package/dist/schemas/metadataStandardSearchQuestion.schema.json +123 -156
  75. package/dist/schemas/multiselectBoxAnswer.schema.json +27 -28
  76. package/dist/schemas/multiselectBoxQuestion.schema.json +70 -71
  77. package/dist/schemas/numberAnswer.schema.json +22 -23
  78. package/dist/schemas/numberQuestion.schema.json +52 -50
  79. package/dist/schemas/numberRangeAnswer.schema.json +35 -33
  80. package/dist/schemas/numberRangeQuestion.schema.json +91 -60
  81. package/dist/schemas/numberWithContextAnswer.schema.json +35 -33
  82. package/dist/schemas/numberWithContextQuestion.schema.json +81 -70
  83. package/dist/schemas/radioButtonsAnswer.schema.json +22 -23
  84. package/dist/schemas/radioButtonsQuestion.schema.json +63 -62
  85. package/dist/schemas/repositorySearchAnswer.schema.json +40 -38
  86. package/dist/schemas/repositorySearchQuestion.schema.json +122 -162
  87. package/dist/schemas/researchOutputTableAnswer.schema.json +16622 -411
  88. package/dist/schemas/researchOutputTableQuestion.schema.json +114 -1157
  89. package/dist/schemas/selectBoxAnswer.schema.json +22 -23
  90. package/dist/schemas/selectBoxQuestion.schema.json +70 -71
  91. package/dist/schemas/tableAnswer.schema.json +581 -360
  92. package/dist/schemas/tableQuestion.schema.json +1388 -942
  93. package/dist/schemas/textAnswer.schema.json +22 -23
  94. package/dist/schemas/textAreaAnswer.schema.json +22 -23
  95. package/dist/schemas/textAreaQuestion.schema.json +65 -57
  96. package/dist/schemas/textQuestion.schema.json +50 -49
  97. package/dist/schemas/urlAnswer.schema.json +22 -23
  98. package/dist/schemas/urlQuestion.schema.json +50 -49
  99. package/package.json +6 -4
  100. package/dist/answers/__tests__/usage.spec.js +0 -178
  101. package/dist/questions/__tests__/usage.spec.d.ts +0 -8
  102. package/dist/questions/__tests__/usage.spec.js +0 -473
  103. /package/dist/answers/__tests__/{usage.spec.d.ts → defaults.spec.d.ts} +0 -0
@@ -1,519 +1,740 @@
1
1
  {
2
- "$ref": "#/definitions/TableAnswer",
3
- "definitions": {
4
- "TableAnswer": {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "type": {
6
+ "type": "string",
7
+ "const": "table"
8
+ },
9
+ "meta": {
5
10
  "type": "object",
6
11
  "properties": {
7
- "type": {
8
- "type": "string",
9
- "const": "table"
10
- },
11
- "meta": {
12
- "type": "object",
13
- "properties": {
14
- "schemaVersion": {
15
- "type": "string",
16
- "default": "1.0"
17
- }
18
- },
19
- "additionalProperties": false,
20
- "default": {}
21
- },
22
- "columnHeadings": {
23
- "type": "array",
24
- "items": {
25
- "type": "string"
26
- },
27
- "default": [
28
- "Column A"
29
- ]
30
- },
31
- "answer": {
32
- "type": "array",
33
- "items": {
34
- "type": "object",
35
- "properties": {
36
- "columns": {
37
- "type": "array",
38
- "items": {
39
- "anyOf": [
40
- {
12
+ "schemaVersion": {
13
+ "default": "1.0",
14
+ "type": "string"
15
+ }
16
+ },
17
+ "required": [
18
+ "schemaVersion"
19
+ ],
20
+ "additionalProperties": false
21
+ },
22
+ "columnHeadings": {
23
+ "default": [
24
+ "Column A"
25
+ ],
26
+ "type": "array",
27
+ "items": {
28
+ "type": "string"
29
+ }
30
+ },
31
+ "answer": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "object",
35
+ "properties": {
36
+ "columns": {
37
+ "type": "array",
38
+ "items": {
39
+ "oneOf": [
40
+ {
41
+ "type": "object",
42
+ "properties": {
43
+ "type": {
44
+ "type": "string",
45
+ "const": "affiliationSearch"
46
+ },
47
+ "meta": {
41
48
  "type": "object",
42
49
  "properties": {
43
- "type": {
44
- "type": "string",
45
- "const": "affiliationSearch"
46
- },
47
- "meta": {
48
- "$ref": "#/definitions/TableAnswer/properties/meta"
49
- },
50
- "answer": {
51
- "type": "object",
52
- "properties": {
53
- "affiliationId": {
54
- "type": "string",
55
- "default": ""
56
- },
57
- "affiliationName": {
58
- "type": "string",
59
- "default": ""
60
- }
61
- },
62
- "additionalProperties": false,
63
- "default": {}
50
+ "schemaVersion": {
51
+ "default": "1.0",
52
+ "type": "string"
64
53
  }
65
54
  },
66
55
  "required": [
67
- "type"
56
+ "schemaVersion"
68
57
  ],
69
58
  "additionalProperties": false
70
59
  },
71
- {
60
+ "answer": {
72
61
  "type": "object",
73
62
  "properties": {
74
- "type": {
75
- "type": "string",
76
- "const": "boolean"
77
- },
78
- "meta": {
79
- "$ref": "#/definitions/TableAnswer/properties/meta"
63
+ "affiliationId": {
64
+ "default": "",
65
+ "type": "string"
80
66
  },
81
- "answer": {
82
- "type": "boolean",
83
- "default": false
67
+ "affiliationName": {
68
+ "default": "",
69
+ "type": "string"
84
70
  }
85
71
  },
86
72
  "required": [
87
- "type"
73
+ "affiliationId",
74
+ "affiliationName"
88
75
  ],
89
76
  "additionalProperties": false
77
+ }
78
+ },
79
+ "required": [
80
+ "type",
81
+ "meta",
82
+ "answer"
83
+ ],
84
+ "additionalProperties": false
85
+ },
86
+ {
87
+ "type": "object",
88
+ "properties": {
89
+ "type": {
90
+ "type": "string",
91
+ "const": "boolean"
90
92
  },
91
- {
93
+ "meta": {
92
94
  "type": "object",
93
95
  "properties": {
94
- "type": {
95
- "type": "string",
96
- "const": "checkBoxes"
97
- },
98
- "meta": {
99
- "$ref": "#/definitions/TableAnswer/properties/meta"
100
- },
101
- "answer": {
102
- "type": "array",
103
- "items": {
104
- "type": "string"
105
- },
106
- "default": [
107
- ""
108
- ]
96
+ "schemaVersion": {
97
+ "default": "1.0",
98
+ "type": "string"
109
99
  }
110
100
  },
111
101
  "required": [
112
- "type"
102
+ "schemaVersion"
113
103
  ],
114
104
  "additionalProperties": false
115
105
  },
116
- {
106
+ "answer": {
107
+ "default": false,
108
+ "type": "boolean"
109
+ }
110
+ },
111
+ "required": [
112
+ "type",
113
+ "meta",
114
+ "answer"
115
+ ],
116
+ "additionalProperties": false
117
+ },
118
+ {
119
+ "type": "object",
120
+ "properties": {
121
+ "type": {
122
+ "type": "string",
123
+ "const": "checkBoxes"
124
+ },
125
+ "meta": {
117
126
  "type": "object",
118
127
  "properties": {
119
- "type": {
120
- "type": "string",
121
- "const": "currency"
122
- },
123
- "meta": {
124
- "$ref": "#/definitions/TableAnswer/properties/meta"
125
- },
126
- "answer": {
127
- "type": "number",
128
- "default": 0
128
+ "schemaVersion": {
129
+ "default": "1.0",
130
+ "type": "string"
129
131
  }
130
132
  },
131
133
  "required": [
132
- "type"
134
+ "schemaVersion"
133
135
  ],
134
136
  "additionalProperties": false
135
137
  },
136
- {
138
+ "answer": {
139
+ "default": [
140
+ ""
141
+ ],
142
+ "type": "array",
143
+ "items": {
144
+ "type": "string"
145
+ }
146
+ }
147
+ },
148
+ "required": [
149
+ "type",
150
+ "meta",
151
+ "answer"
152
+ ],
153
+ "additionalProperties": false
154
+ },
155
+ {
156
+ "type": "object",
157
+ "properties": {
158
+ "type": {
159
+ "type": "string",
160
+ "const": "currency"
161
+ },
162
+ "meta": {
137
163
  "type": "object",
138
164
  "properties": {
139
- "type": {
140
- "type": "string",
141
- "const": "date"
142
- },
143
- "meta": {
144
- "$ref": "#/definitions/TableAnswer/properties/meta"
145
- },
146
- "answer": {
147
- "type": "string",
148
- "default": ""
165
+ "schemaVersion": {
166
+ "default": "1.0",
167
+ "type": "string"
149
168
  }
150
169
  },
151
170
  "required": [
152
- "type"
171
+ "schemaVersion"
153
172
  ],
154
173
  "additionalProperties": false
155
174
  },
156
- {
175
+ "answer": {
176
+ "default": 0,
177
+ "type": "number"
178
+ }
179
+ },
180
+ "required": [
181
+ "type",
182
+ "meta",
183
+ "answer"
184
+ ],
185
+ "additionalProperties": false
186
+ },
187
+ {
188
+ "type": "object",
189
+ "properties": {
190
+ "type": {
191
+ "type": "string",
192
+ "const": "date"
193
+ },
194
+ "meta": {
157
195
  "type": "object",
158
196
  "properties": {
159
- "type": {
160
- "type": "string",
161
- "const": "dateRange"
162
- },
163
- "meta": {
164
- "$ref": "#/definitions/TableAnswer/properties/meta"
165
- },
166
- "answer": {
167
- "type": "object",
168
- "properties": {
169
- "start": {
170
- "type": "string",
171
- "default": ""
172
- },
173
- "end": {
174
- "type": "string",
175
- "default": ""
176
- }
177
- },
178
- "additionalProperties": false,
179
- "default": {}
197
+ "schemaVersion": {
198
+ "default": "1.0",
199
+ "type": "string"
180
200
  }
181
201
  },
182
202
  "required": [
183
- "type"
203
+ "schemaVersion"
184
204
  ],
185
205
  "additionalProperties": false
186
206
  },
187
- {
207
+ "answer": {
208
+ "default": "",
209
+ "type": "string"
210
+ }
211
+ },
212
+ "required": [
213
+ "type",
214
+ "meta",
215
+ "answer"
216
+ ],
217
+ "additionalProperties": false
218
+ },
219
+ {
220
+ "type": "object",
221
+ "properties": {
222
+ "type": {
223
+ "type": "string",
224
+ "const": "dateRange"
225
+ },
226
+ "meta": {
188
227
  "type": "object",
189
228
  "properties": {
190
- "type": {
191
- "type": "string",
192
- "const": "email"
193
- },
194
- "meta": {
195
- "$ref": "#/definitions/TableAnswer/properties/meta"
196
- },
197
- "answer": {
198
- "type": "string",
199
- "default": ""
229
+ "schemaVersion": {
230
+ "default": "1.0",
231
+ "type": "string"
200
232
  }
201
233
  },
202
234
  "required": [
203
- "type"
235
+ "schemaVersion"
204
236
  ],
205
237
  "additionalProperties": false
206
238
  },
207
- {
239
+ "answer": {
208
240
  "type": "object",
209
241
  "properties": {
210
- "type": {
211
- "type": "string",
212
- "const": "licenseSearch"
213
- },
214
- "meta": {
215
- "$ref": "#/definitions/TableAnswer/properties/meta"
242
+ "start": {
243
+ "default": "",
244
+ "type": "string"
216
245
  },
217
- "answer": {
218
- "type": "array",
219
- "items": {
220
- "type": "object",
221
- "properties": {
222
- "licenseId": {
223
- "type": "string",
224
- "default": ""
225
- },
226
- "licenseName": {
227
- "type": "string",
228
- "default": ""
229
- }
230
- },
231
- "additionalProperties": false,
232
- "default": {}
233
- },
234
- "default": []
246
+ "end": {
247
+ "default": "",
248
+ "type": "string"
235
249
  }
236
250
  },
237
251
  "required": [
238
- "type"
252
+ "start",
253
+ "end"
239
254
  ],
240
255
  "additionalProperties": false
256
+ }
257
+ },
258
+ "required": [
259
+ "type",
260
+ "meta",
261
+ "answer"
262
+ ],
263
+ "additionalProperties": false
264
+ },
265
+ {
266
+ "type": "object",
267
+ "properties": {
268
+ "type": {
269
+ "type": "string",
270
+ "const": "email"
241
271
  },
242
- {
272
+ "meta": {
243
273
  "type": "object",
244
274
  "properties": {
245
- "type": {
246
- "type": "string",
247
- "const": "metadataStandardSearch"
248
- },
249
- "meta": {
250
- "$ref": "#/definitions/TableAnswer/properties/meta"
251
- },
252
- "answer": {
253
- "type": "array",
254
- "items": {
255
- "type": "object",
256
- "properties": {
257
- "metadataStandardId": {
258
- "type": "string",
259
- "default": ""
260
- },
261
- "metadataStandardName": {
262
- "type": "string",
263
- "default": ""
264
- }
265
- },
266
- "additionalProperties": false,
267
- "default": {}
268
- },
269
- "default": []
275
+ "schemaVersion": {
276
+ "default": "1.0",
277
+ "type": "string"
270
278
  }
271
279
  },
272
280
  "required": [
273
- "type"
281
+ "schemaVersion"
274
282
  ],
275
283
  "additionalProperties": false
276
284
  },
277
- {
285
+ "answer": {
286
+ "default": "",
287
+ "type": "string"
288
+ }
289
+ },
290
+ "required": [
291
+ "type",
292
+ "meta",
293
+ "answer"
294
+ ],
295
+ "additionalProperties": false
296
+ },
297
+ {
298
+ "type": "object",
299
+ "properties": {
300
+ "type": {
301
+ "type": "string",
302
+ "const": "licenseSearch"
303
+ },
304
+ "meta": {
278
305
  "type": "object",
279
306
  "properties": {
280
- "type": {
281
- "type": "string",
282
- "const": "multiselectBox"
283
- },
284
- "meta": {
285
- "$ref": "#/definitions/TableAnswer/properties/meta"
286
- },
287
- "answer": {
288
- "type": "array",
289
- "items": {
307
+ "schemaVersion": {
308
+ "default": "1.0",
309
+ "type": "string"
310
+ }
311
+ },
312
+ "required": [
313
+ "schemaVersion"
314
+ ],
315
+ "additionalProperties": false
316
+ },
317
+ "answer": {
318
+ "default": [],
319
+ "type": "array",
320
+ "items": {
321
+ "type": "object",
322
+ "properties": {
323
+ "licenseId": {
324
+ "default": "",
290
325
  "type": "string"
291
326
  },
292
- "default": [
293
- ""
294
- ]
327
+ "licenseName": {
328
+ "default": "",
329
+ "type": "string"
330
+ }
331
+ },
332
+ "required": [
333
+ "licenseId",
334
+ "licenseName"
335
+ ],
336
+ "additionalProperties": false
337
+ }
338
+ }
339
+ },
340
+ "required": [
341
+ "type",
342
+ "meta",
343
+ "answer"
344
+ ],
345
+ "additionalProperties": false
346
+ },
347
+ {
348
+ "type": "object",
349
+ "properties": {
350
+ "type": {
351
+ "type": "string",
352
+ "const": "metadataStandardSearch"
353
+ },
354
+ "meta": {
355
+ "type": "object",
356
+ "properties": {
357
+ "schemaVersion": {
358
+ "default": "1.0",
359
+ "type": "string"
295
360
  }
296
361
  },
297
362
  "required": [
298
- "type"
363
+ "schemaVersion"
299
364
  ],
300
365
  "additionalProperties": false
301
366
  },
302
- {
367
+ "answer": {
368
+ "default": [],
369
+ "type": "array",
370
+ "items": {
371
+ "type": "object",
372
+ "properties": {
373
+ "metadataStandardId": {
374
+ "default": "",
375
+ "type": "string"
376
+ },
377
+ "metadataStandardName": {
378
+ "default": "",
379
+ "type": "string"
380
+ }
381
+ },
382
+ "required": [
383
+ "metadataStandardId",
384
+ "metadataStandardName"
385
+ ],
386
+ "additionalProperties": false
387
+ }
388
+ }
389
+ },
390
+ "required": [
391
+ "type",
392
+ "meta",
393
+ "answer"
394
+ ],
395
+ "additionalProperties": false
396
+ },
397
+ {
398
+ "type": "object",
399
+ "properties": {
400
+ "type": {
401
+ "type": "string",
402
+ "const": "multiselectBox"
403
+ },
404
+ "meta": {
303
405
  "type": "object",
304
406
  "properties": {
305
- "type": {
306
- "type": "string",
307
- "const": "number"
308
- },
309
- "meta": {
310
- "$ref": "#/definitions/TableAnswer/properties/meta"
311
- },
312
- "answer": {
313
- "type": "number",
314
- "default": 0
407
+ "schemaVersion": {
408
+ "default": "1.0",
409
+ "type": "string"
315
410
  }
316
411
  },
317
412
  "required": [
318
- "type"
413
+ "schemaVersion"
319
414
  ],
320
415
  "additionalProperties": false
321
416
  },
322
- {
417
+ "answer": {
418
+ "default": [
419
+ ""
420
+ ],
421
+ "type": "array",
422
+ "items": {
423
+ "type": "string"
424
+ }
425
+ }
426
+ },
427
+ "required": [
428
+ "type",
429
+ "meta",
430
+ "answer"
431
+ ],
432
+ "additionalProperties": false
433
+ },
434
+ {
435
+ "type": "object",
436
+ "properties": {
437
+ "type": {
438
+ "type": "string",
439
+ "const": "number"
440
+ },
441
+ "meta": {
323
442
  "type": "object",
324
443
  "properties": {
325
- "type": {
326
- "type": "string",
327
- "const": "numberWithContext"
328
- },
329
- "meta": {
330
- "$ref": "#/definitions/TableAnswer/properties/meta"
331
- },
332
- "answer": {
333
- "type": "object",
334
- "properties": {
335
- "value": {
336
- "type": "number",
337
- "default": 0
338
- },
339
- "context": {
340
- "type": "string",
341
- "default": ""
342
- }
343
- },
344
- "additionalProperties": false
444
+ "schemaVersion": {
445
+ "default": "1.0",
446
+ "type": "string"
345
447
  }
346
448
  },
347
449
  "required": [
348
- "type",
349
- "answer"
450
+ "schemaVersion"
350
451
  ],
351
452
  "additionalProperties": false
352
453
  },
353
- {
454
+ "answer": {
455
+ "default": 0,
456
+ "type": "number"
457
+ }
458
+ },
459
+ "required": [
460
+ "type",
461
+ "meta",
462
+ "answer"
463
+ ],
464
+ "additionalProperties": false
465
+ },
466
+ {
467
+ "type": "object",
468
+ "properties": {
469
+ "type": {
470
+ "type": "string",
471
+ "const": "numberWithContext"
472
+ },
473
+ "meta": {
354
474
  "type": "object",
355
475
  "properties": {
356
- "type": {
357
- "type": "string",
358
- "const": "radioButtons"
359
- },
360
- "meta": {
361
- "$ref": "#/definitions/TableAnswer/properties/meta"
362
- },
363
- "answer": {
364
- "type": "string",
365
- "default": ""
476
+ "schemaVersion": {
477
+ "default": "1.0",
478
+ "type": "string"
366
479
  }
367
480
  },
368
481
  "required": [
369
- "type"
482
+ "schemaVersion"
370
483
  ],
371
484
  "additionalProperties": false
372
485
  },
373
- {
486
+ "answer": {
374
487
  "type": "object",
375
488
  "properties": {
376
- "type": {
377
- "type": "string",
378
- "const": "repositorySearch"
379
- },
380
- "meta": {
381
- "$ref": "#/definitions/TableAnswer/properties/meta"
489
+ "value": {
490
+ "default": 0,
491
+ "type": "number"
382
492
  },
383
- "answer": {
384
- "type": "array",
385
- "items": {
386
- "type": "object",
387
- "properties": {
388
- "repositoryId": {
389
- "type": "string",
390
- "default": ""
391
- },
392
- "repositoryName": {
393
- "type": "string",
394
- "default": ""
395
- }
396
- },
397
- "additionalProperties": false,
398
- "default": {}
399
- },
400
- "default": []
493
+ "context": {
494
+ "default": "",
495
+ "type": "string"
401
496
  }
402
497
  },
403
498
  "required": [
404
- "type"
499
+ "value",
500
+ "context"
405
501
  ],
406
502
  "additionalProperties": false
503
+ }
504
+ },
505
+ "required": [
506
+ "type",
507
+ "meta",
508
+ "answer"
509
+ ],
510
+ "additionalProperties": false
511
+ },
512
+ {
513
+ "type": "object",
514
+ "properties": {
515
+ "type": {
516
+ "type": "string",
517
+ "const": "radioButtons"
407
518
  },
408
- {
519
+ "meta": {
409
520
  "type": "object",
410
521
  "properties": {
411
- "type": {
412
- "type": "string",
413
- "const": "selectBox"
414
- },
415
- "meta": {
416
- "$ref": "#/definitions/TableAnswer/properties/meta"
417
- },
418
- "answer": {
419
- "type": "string",
420
- "default": ""
522
+ "schemaVersion": {
523
+ "default": "1.0",
524
+ "type": "string"
421
525
  }
422
526
  },
423
527
  "required": [
424
- "type"
528
+ "schemaVersion"
425
529
  ],
426
530
  "additionalProperties": false
427
531
  },
428
- {
532
+ "answer": {
533
+ "default": "",
534
+ "type": "string"
535
+ }
536
+ },
537
+ "required": [
538
+ "type",
539
+ "meta",
540
+ "answer"
541
+ ],
542
+ "additionalProperties": false
543
+ },
544
+ {
545
+ "type": "object",
546
+ "properties": {
547
+ "type": {
548
+ "type": "string",
549
+ "const": "repositorySearch"
550
+ },
551
+ "meta": {
429
552
  "type": "object",
430
553
  "properties": {
431
- "type": {
432
- "type": "string",
433
- "const": "text"
434
- },
435
- "meta": {
436
- "$ref": "#/definitions/TableAnswer/properties/meta"
437
- },
438
- "answer": {
439
- "type": "string",
440
- "default": ""
554
+ "schemaVersion": {
555
+ "default": "1.0",
556
+ "type": "string"
441
557
  }
442
558
  },
443
559
  "required": [
444
- "type"
560
+ "schemaVersion"
445
561
  ],
446
562
  "additionalProperties": false
447
563
  },
448
- {
564
+ "answer": {
565
+ "default": [],
566
+ "type": "array",
567
+ "items": {
568
+ "type": "object",
569
+ "properties": {
570
+ "repositoryId": {
571
+ "default": "",
572
+ "type": "string"
573
+ },
574
+ "repositoryName": {
575
+ "default": "",
576
+ "type": "string"
577
+ }
578
+ },
579
+ "required": [
580
+ "repositoryId",
581
+ "repositoryName"
582
+ ],
583
+ "additionalProperties": false
584
+ }
585
+ }
586
+ },
587
+ "required": [
588
+ "type",
589
+ "meta",
590
+ "answer"
591
+ ],
592
+ "additionalProperties": false
593
+ },
594
+ {
595
+ "type": "object",
596
+ "properties": {
597
+ "type": {
598
+ "type": "string",
599
+ "const": "selectBox"
600
+ },
601
+ "meta": {
449
602
  "type": "object",
450
603
  "properties": {
451
- "type": {
452
- "type": "string",
453
- "const": "textArea"
454
- },
455
- "meta": {
456
- "$ref": "#/definitions/TableAnswer/properties/meta"
457
- },
458
- "answer": {
459
- "type": "string",
460
- "default": ""
604
+ "schemaVersion": {
605
+ "default": "1.0",
606
+ "type": "string"
461
607
  }
462
608
  },
463
609
  "required": [
464
- "type"
610
+ "schemaVersion"
465
611
  ],
466
612
  "additionalProperties": false
467
613
  },
468
- {
614
+ "answer": {
615
+ "default": "",
616
+ "type": "string"
617
+ }
618
+ },
619
+ "required": [
620
+ "type",
621
+ "meta",
622
+ "answer"
623
+ ],
624
+ "additionalProperties": false
625
+ },
626
+ {
627
+ "type": "object",
628
+ "properties": {
629
+ "type": {
630
+ "type": "string",
631
+ "const": "text"
632
+ },
633
+ "meta": {
469
634
  "type": "object",
470
635
  "properties": {
471
- "type": {
472
- "type": "string",
473
- "const": "url"
474
- },
475
- "meta": {
476
- "$ref": "#/definitions/TableAnswer/properties/meta"
477
- },
478
- "answer": {
479
- "type": "string",
480
- "default": ""
636
+ "schemaVersion": {
637
+ "default": "1.0",
638
+ "type": "string"
481
639
  }
482
640
  },
483
641
  "required": [
484
- "type"
642
+ "schemaVersion"
485
643
  ],
486
644
  "additionalProperties": false
645
+ },
646
+ "answer": {
647
+ "default": "",
648
+ "type": "string"
487
649
  }
488
- ]
489
- }
490
- }
491
- },
492
- "required": [
493
- "columns"
494
- ],
495
- "additionalProperties": false
496
- },
497
- "default": [
498
- {
499
- "columns": [
650
+ },
651
+ "required": [
652
+ "type",
653
+ "meta",
654
+ "answer"
655
+ ],
656
+ "additionalProperties": false
657
+ },
500
658
  {
501
- "type": "textArea",
502
- "answer": "",
503
- "meta": {
504
- "schemaVersion": "1.0"
505
- }
659
+ "type": "object",
660
+ "properties": {
661
+ "type": {
662
+ "type": "string",
663
+ "const": "textArea"
664
+ },
665
+ "meta": {
666
+ "type": "object",
667
+ "properties": {
668
+ "schemaVersion": {
669
+ "default": "1.0",
670
+ "type": "string"
671
+ }
672
+ },
673
+ "required": [
674
+ "schemaVersion"
675
+ ],
676
+ "additionalProperties": false
677
+ },
678
+ "answer": {
679
+ "default": "",
680
+ "type": "string"
681
+ }
682
+ },
683
+ "required": [
684
+ "type",
685
+ "meta",
686
+ "answer"
687
+ ],
688
+ "additionalProperties": false
689
+ },
690
+ {
691
+ "type": "object",
692
+ "properties": {
693
+ "type": {
694
+ "type": "string",
695
+ "const": "url"
696
+ },
697
+ "meta": {
698
+ "type": "object",
699
+ "properties": {
700
+ "schemaVersion": {
701
+ "default": "1.0",
702
+ "type": "string"
703
+ }
704
+ },
705
+ "required": [
706
+ "schemaVersion"
707
+ ],
708
+ "additionalProperties": false
709
+ },
710
+ "answer": {
711
+ "default": "",
712
+ "type": "string"
713
+ }
714
+ },
715
+ "required": [
716
+ "type",
717
+ "meta",
718
+ "answer"
719
+ ],
720
+ "additionalProperties": false
506
721
  }
507
722
  ]
508
723
  }
509
- ]
510
- }
511
- },
512
- "required": [
513
- "type"
514
- ],
515
- "additionalProperties": false
724
+ }
725
+ },
726
+ "required": [
727
+ "columns"
728
+ ],
729
+ "additionalProperties": false
730
+ }
516
731
  }
517
732
  },
518
- "$schema": "http://json-schema.org/draft-07/schema#"
733
+ "required": [
734
+ "type",
735
+ "meta",
736
+ "columnHeadings",
737
+ "answer"
738
+ ],
739
+ "additionalProperties": false
519
740
  }