@dmptool/types 1.1.2 → 1.2.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.
- package/README.md +119 -47
- package/dist/answers/__tests__/answers.spec.js +20 -28
- package/dist/answers/__tests__/usage.spec.d.ts +1 -0
- package/dist/answers/__tests__/usage.spec.js +175 -0
- package/dist/answers/answer.d.ts +12 -15
- package/dist/answers/answer.js +3 -4
- package/dist/answers/dateAnswers.d.ts +30 -30
- package/dist/answers/dateAnswers.js +6 -5
- package/dist/answers/graphQLAnswers.d.ts +25 -25
- package/dist/answers/graphQLAnswers.js +4 -4
- package/dist/answers/index.d.ts +860 -1088
- package/dist/answers/index.js +2 -2
- package/dist/answers/numberAnswers.d.ts +41 -41
- package/dist/answers/numberAnswers.js +8 -8
- package/dist/answers/optionBasedAnswers.d.ts +55 -55
- package/dist/answers/optionBasedAnswers.js +10 -10
- package/dist/answers/tableAnswers.d.ts +811 -1772
- package/dist/answers/tableAnswers.js +12 -8
- package/dist/answers/textAnswers.d.ts +44 -44
- package/dist/answers/textAnswers.js +8 -8
- package/dist/questions/__tests__/graphQLQuestions.spec.js +6 -4
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +4 -12
- package/dist/questions/__tests__/usage.spec.d.ts +8 -0
- package/dist/questions/__tests__/usage.spec.js +312 -0
- package/dist/questions/dateQuestions.d.ts +90 -101
- package/dist/questions/dateQuestions.js +15 -34
- package/dist/questions/graphQLQuestions.d.ts +176 -182
- package/dist/questions/graphQLQuestions.js +44 -45
- package/dist/questions/index.d.ts +1791 -2170
- package/dist/questions/index.js +2 -2
- package/dist/questions/numberQuestions.d.ts +126 -142
- package/dist/questions/numberQuestions.js +11 -45
- package/dist/questions/optionBasedQuestions.d.ts +197 -225
- package/dist/questions/optionBasedQuestions.js +24 -88
- package/dist/questions/question.d.ts +24 -56
- package/dist/questions/question.js +78 -18
- package/dist/questions/tableQuestions.d.ts +2637 -2930
- package/dist/questions/tableQuestions.js +9 -21
- package/dist/questions/textQuestions.d.ts +125 -145
- package/dist/questions/textQuestions.js +16 -57
- package/dist/schemas/affiliationSearchAnswer.schema.json +9 -12
- package/dist/schemas/affiliationSearchQuestion.schema.json +57 -50
- package/dist/schemas/anyAnswer.schema.json +228 -237
- package/dist/schemas/anyQuestion.schema.json +349 -517
- package/dist/schemas/anyTableColumnAnswer.schema.json +93 -106
- package/dist/schemas/anyTableColumnQuestion.schema.json +259 -382
- package/dist/schemas/booleanAnswer.schema.json +8 -11
- package/dist/schemas/booleanQuestion.schema.json +9 -15
- package/dist/schemas/checkboxesAnswer.schema.json +13 -14
- package/dist/schemas/checkboxesQuestion.schema.json +18 -24
- package/dist/schemas/currencyAnswer.schema.json +8 -11
- package/dist/schemas/currencyQuestion.schema.json +13 -17
- package/dist/schemas/dateAnswer.schema.json +8 -11
- package/dist/schemas/dateQuestion.schema.json +9 -15
- package/dist/schemas/dateRangeAnswer.schema.json +16 -21
- package/dist/schemas/dateRangeQuestion.schema.json +40 -21
- package/dist/schemas/emailAnswer.schema.json +8 -11
- package/dist/schemas/emailQuestion.schema.json +11 -16
- package/dist/schemas/filteredSearchQuestion.schema.json +0 -3
- package/dist/schemas/multiselectBoxAnswer.schema.json +13 -14
- package/dist/schemas/multiselectBoxQuestion.schema.json +20 -25
- package/dist/schemas/numberAnswer.schema.json +8 -11
- package/dist/schemas/numberQuestion.schema.json +11 -16
- package/dist/schemas/numberRangeAnswer.schema.json +17 -22
- package/dist/schemas/numberRangeQuestion.schema.json +22 -21
- package/dist/schemas/radioButtonsAnswer.schema.json +8 -11
- package/dist/schemas/radioButtonsQuestion.schema.json +18 -24
- package/dist/schemas/selectBoxAnswer.schema.json +8 -11
- package/dist/schemas/selectBoxQuestion.schema.json +20 -25
- package/dist/schemas/tableAnswer.schema.json +337 -343
- package/dist/schemas/tableQuestion.schema.json +279 -416
- package/dist/schemas/textAnswer.schema.json +8 -11
- package/dist/schemas/textAreaAnswer.schema.json +8 -11
- package/dist/schemas/textAreaQuestion.schema.json +13 -17
- package/dist/schemas/textQuestion.schema.json +9 -15
- package/dist/schemas/urlAnswer.schema.json +8 -11
- package/dist/schemas/urlQuestion.schema.json +9 -15
- package/package.json +1 -1
|
@@ -8,30 +8,29 @@
|
|
|
8
8
|
"type": "string",
|
|
9
9
|
"const": "multiselectBox"
|
|
10
10
|
},
|
|
11
|
-
"answer": {
|
|
12
|
-
"type": "array",
|
|
13
|
-
"items": {
|
|
14
|
-
"type": "string"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
11
|
"meta": {
|
|
18
12
|
"type": "object",
|
|
19
13
|
"properties": {
|
|
20
14
|
"schemaVersion": {
|
|
21
15
|
"type": "string",
|
|
22
|
-
"
|
|
16
|
+
"default": "1.0"
|
|
23
17
|
}
|
|
24
18
|
},
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"default": {}
|
|
21
|
+
},
|
|
22
|
+
"answer": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"default": [
|
|
28
|
+
""
|
|
29
|
+
]
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
"required": [
|
|
32
|
-
"type"
|
|
33
|
-
"answer",
|
|
34
|
-
"meta"
|
|
33
|
+
"type"
|
|
35
34
|
],
|
|
36
35
|
"additionalProperties": false
|
|
37
36
|
}
|
|
@@ -28,32 +28,27 @@
|
|
|
28
28
|
"required": [
|
|
29
29
|
"multiple"
|
|
30
30
|
],
|
|
31
|
-
"additionalProperties": false
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"default": {
|
|
33
|
+
"multiple": true
|
|
34
|
+
}
|
|
32
35
|
},
|
|
33
36
|
"meta": {
|
|
34
37
|
"type": "object",
|
|
35
38
|
"properties": {
|
|
36
39
|
"schemaVersion": {
|
|
37
40
|
"type": "string",
|
|
38
|
-
"
|
|
41
|
+
"default": "1.0"
|
|
39
42
|
},
|
|
40
43
|
"title": {
|
|
41
|
-
"type": "string"
|
|
42
|
-
"const": "Multi-select Box"
|
|
44
|
+
"type": "string"
|
|
43
45
|
},
|
|
44
46
|
"usageDescription": {
|
|
45
|
-
"type": "string"
|
|
46
|
-
"const": "For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses."
|
|
47
|
-
},
|
|
48
|
-
"defaultJSON": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"const": "{\n \"type\": \"selectBox\",\n \"attributes\": {\n \"multiple\": true\n },\n \"options\": [\n {\n \"label\": \"Option 1\",\n \"value\": \"option1\"\n }\n ],\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
47
|
+
"type": "string"
|
|
51
48
|
}
|
|
52
49
|
},
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
],
|
|
56
|
-
"additionalProperties": false
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"default": {}
|
|
57
52
|
},
|
|
58
53
|
"options": {
|
|
59
54
|
"type": "array",
|
|
@@ -61,27 +56,27 @@
|
|
|
61
56
|
"type": "object",
|
|
62
57
|
"properties": {
|
|
63
58
|
"label": {
|
|
64
|
-
"type": "string"
|
|
59
|
+
"type": "string",
|
|
60
|
+
"default": "Option A"
|
|
65
61
|
},
|
|
66
62
|
"value": {
|
|
67
|
-
"type": "string"
|
|
63
|
+
"type": "string",
|
|
64
|
+
"default": "a"
|
|
68
65
|
},
|
|
69
66
|
"selected": {
|
|
70
|
-
"type": "boolean"
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"default": false
|
|
71
69
|
}
|
|
72
70
|
},
|
|
73
|
-
"required": [
|
|
74
|
-
"label",
|
|
75
|
-
"value"
|
|
76
|
-
],
|
|
77
71
|
"additionalProperties": false
|
|
78
|
-
}
|
|
72
|
+
},
|
|
73
|
+
"default": [
|
|
74
|
+
{}
|
|
75
|
+
]
|
|
79
76
|
}
|
|
80
77
|
},
|
|
81
78
|
"required": [
|
|
82
|
-
"type"
|
|
83
|
-
"attributes",
|
|
84
|
-
"options"
|
|
79
|
+
"type"
|
|
85
80
|
],
|
|
86
81
|
"additionalProperties": false
|
|
87
82
|
}
|
|
@@ -8,27 +8,24 @@
|
|
|
8
8
|
"type": "string",
|
|
9
9
|
"const": "number"
|
|
10
10
|
},
|
|
11
|
-
"answer": {
|
|
12
|
-
"type": "number"
|
|
13
|
-
},
|
|
14
11
|
"meta": {
|
|
15
12
|
"type": "object",
|
|
16
13
|
"properties": {
|
|
17
14
|
"schemaVersion": {
|
|
18
15
|
"type": "string",
|
|
19
|
-
"
|
|
16
|
+
"default": "1.0"
|
|
20
17
|
}
|
|
21
18
|
},
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"default": {}
|
|
21
|
+
},
|
|
22
|
+
"answer": {
|
|
23
|
+
"type": "number",
|
|
24
|
+
"default": 0
|
|
26
25
|
}
|
|
27
26
|
},
|
|
28
27
|
"required": [
|
|
29
|
-
"type"
|
|
30
|
-
"answer",
|
|
31
|
-
"meta"
|
|
28
|
+
"type"
|
|
32
29
|
],
|
|
33
30
|
"additionalProperties": false
|
|
34
31
|
}
|
|
@@ -24,38 +24,33 @@
|
|
|
24
24
|
"type": "number"
|
|
25
25
|
},
|
|
26
26
|
"min": {
|
|
27
|
-
"type": "number"
|
|
27
|
+
"type": "number",
|
|
28
|
+
"default": 0
|
|
28
29
|
},
|
|
29
30
|
"step": {
|
|
30
|
-
"type": "number"
|
|
31
|
+
"type": "number",
|
|
32
|
+
"default": 1
|
|
31
33
|
}
|
|
32
34
|
},
|
|
33
|
-
"additionalProperties": false
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"default": {}
|
|
34
37
|
},
|
|
35
38
|
"meta": {
|
|
36
39
|
"type": "object",
|
|
37
40
|
"properties": {
|
|
38
41
|
"schemaVersion": {
|
|
39
42
|
"type": "string",
|
|
40
|
-
"
|
|
43
|
+
"default": "1.0"
|
|
41
44
|
},
|
|
42
45
|
"title": {
|
|
43
|
-
"type": "string"
|
|
44
|
-
"const": "Number Field"
|
|
46
|
+
"type": "string"
|
|
45
47
|
},
|
|
46
48
|
"usageDescription": {
|
|
47
|
-
"type": "string"
|
|
48
|
-
"const": "For questions that require a single numeric value."
|
|
49
|
-
},
|
|
50
|
-
"defaultJSON": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"const": "{\n \"type\": \"number\",\n \"attributes\": {\n \"min\": 0,\n \"step\": 1\n },\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
49
|
+
"type": "string"
|
|
53
50
|
}
|
|
54
51
|
},
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
],
|
|
58
|
-
"additionalProperties": false
|
|
52
|
+
"additionalProperties": false,
|
|
53
|
+
"default": {}
|
|
59
54
|
}
|
|
60
55
|
},
|
|
61
56
|
"required": [
|
|
@@ -8,40 +8,35 @@
|
|
|
8
8
|
"type": "string",
|
|
9
9
|
"const": "numberRange"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"meta": {
|
|
12
12
|
"type": "object",
|
|
13
13
|
"properties": {
|
|
14
|
-
"
|
|
15
|
-
"type": "
|
|
16
|
-
|
|
17
|
-
"end": {
|
|
18
|
-
"type": "number"
|
|
14
|
+
"schemaVersion": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"default": "1.0"
|
|
19
17
|
}
|
|
20
18
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
"end"
|
|
24
|
-
],
|
|
25
|
-
"additionalProperties": false
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"default": {}
|
|
26
21
|
},
|
|
27
|
-
"
|
|
22
|
+
"answer": {
|
|
28
23
|
"type": "object",
|
|
29
24
|
"properties": {
|
|
30
|
-
"
|
|
31
|
-
"type": "
|
|
32
|
-
"
|
|
25
|
+
"start": {
|
|
26
|
+
"type": "number",
|
|
27
|
+
"default": 0
|
|
28
|
+
},
|
|
29
|
+
"end": {
|
|
30
|
+
"type": "number",
|
|
31
|
+
"default": 0
|
|
33
32
|
}
|
|
34
33
|
},
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
],
|
|
38
|
-
"additionalProperties": false
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"default": {}
|
|
39
36
|
}
|
|
40
37
|
},
|
|
41
38
|
"required": [
|
|
42
|
-
"type"
|
|
43
|
-
"answer",
|
|
44
|
-
"meta"
|
|
39
|
+
"type"
|
|
45
40
|
],
|
|
46
41
|
"additionalProperties": false
|
|
47
42
|
}
|
|
@@ -21,32 +21,25 @@
|
|
|
21
21
|
"type": "string"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"additionalProperties": false
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"default": {}
|
|
25
26
|
},
|
|
26
27
|
"meta": {
|
|
27
28
|
"type": "object",
|
|
28
29
|
"properties": {
|
|
29
30
|
"schemaVersion": {
|
|
30
31
|
"type": "string",
|
|
31
|
-
"
|
|
32
|
+
"default": "1.0"
|
|
32
33
|
},
|
|
33
34
|
"title": {
|
|
34
|
-
"type": "string"
|
|
35
|
-
"const": "Number Range"
|
|
35
|
+
"type": "string"
|
|
36
36
|
},
|
|
37
37
|
"usageDescription": {
|
|
38
|
-
"type": "string"
|
|
39
|
-
"const": "For questions that require a numerical range (e.g. From/To, Min/Max)."
|
|
40
|
-
},
|
|
41
|
-
"defaultJSON": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"const": "{\n \"type\": \"numberRange\",\n \"attributes\": {},\n \"columns\": {\n \"start\": {\n \"label\": \"From\",\n \"min\": 0,\n \"step\": 1\n },\n \"end\": {\n \"label\": \"To\",\n \"min\": 0,\n \"step\": 1\n }\n },\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
38
|
+
"type": "string"
|
|
44
39
|
}
|
|
45
40
|
},
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
],
|
|
49
|
-
"additionalProperties": false
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"default": {}
|
|
50
43
|
},
|
|
51
44
|
"columns": {
|
|
52
45
|
"type": "object",
|
|
@@ -67,24 +60,32 @@
|
|
|
67
60
|
"type": "number"
|
|
68
61
|
},
|
|
69
62
|
"min": {
|
|
70
|
-
"type": "number"
|
|
63
|
+
"type": "number",
|
|
64
|
+
"default": 0
|
|
71
65
|
},
|
|
72
66
|
"step": {
|
|
73
|
-
"type": "number"
|
|
67
|
+
"type": "number",
|
|
68
|
+
"default": 1
|
|
74
69
|
}
|
|
75
70
|
},
|
|
76
|
-
"additionalProperties": false
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"default": {
|
|
73
|
+
"label": "From"
|
|
74
|
+
}
|
|
77
75
|
},
|
|
78
76
|
"end": {
|
|
79
|
-
"$ref": "#/definitions/NumberRangeQuestion/properties/columns/properties/start"
|
|
77
|
+
"$ref": "#/definitions/NumberRangeQuestion/properties/columns/properties/start",
|
|
78
|
+
"default": {
|
|
79
|
+
"label": "To"
|
|
80
|
+
}
|
|
80
81
|
}
|
|
81
82
|
},
|
|
82
|
-
"additionalProperties": false
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"default": {}
|
|
83
85
|
}
|
|
84
86
|
},
|
|
85
87
|
"required": [
|
|
86
|
-
"type"
|
|
87
|
-
"columns"
|
|
88
|
+
"type"
|
|
88
89
|
],
|
|
89
90
|
"additionalProperties": false
|
|
90
91
|
}
|
|
@@ -8,27 +8,24 @@
|
|
|
8
8
|
"type": "string",
|
|
9
9
|
"const": "radioButtons"
|
|
10
10
|
},
|
|
11
|
-
"answer": {
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
11
|
"meta": {
|
|
15
12
|
"type": "object",
|
|
16
13
|
"properties": {
|
|
17
14
|
"schemaVersion": {
|
|
18
15
|
"type": "string",
|
|
19
|
-
"
|
|
16
|
+
"default": "1.0"
|
|
20
17
|
}
|
|
21
18
|
},
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"default": {}
|
|
21
|
+
},
|
|
22
|
+
"answer": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"default": ""
|
|
26
25
|
}
|
|
27
26
|
},
|
|
28
27
|
"required": [
|
|
29
|
-
"type"
|
|
30
|
-
"answer",
|
|
31
|
-
"meta"
|
|
28
|
+
"type"
|
|
32
29
|
],
|
|
33
30
|
"additionalProperties": false
|
|
34
31
|
}
|
|
@@ -21,32 +21,25 @@
|
|
|
21
21
|
"type": "string"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"additionalProperties": false
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"default": {}
|
|
25
26
|
},
|
|
26
27
|
"meta": {
|
|
27
28
|
"type": "object",
|
|
28
29
|
"properties": {
|
|
29
30
|
"schemaVersion": {
|
|
30
31
|
"type": "string",
|
|
31
|
-
"
|
|
32
|
+
"default": "1.0"
|
|
32
33
|
},
|
|
33
34
|
"title": {
|
|
34
|
-
"type": "string"
|
|
35
|
-
"const": "Radio Buttons"
|
|
35
|
+
"type": "string"
|
|
36
36
|
},
|
|
37
37
|
"usageDescription": {
|
|
38
|
-
"type": "string"
|
|
39
|
-
"const": "For multiple choice questions where users select just one option."
|
|
40
|
-
},
|
|
41
|
-
"defaultJSON": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"const": "{\n \"type\": \"radioButtons\",\n \"attributes\": {},\n \"options\": [\n {\n \"label\": \"Option 1\",\n \"value\": \"option1\",\n \"selected\": false\n }\n ],\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
38
|
+
"type": "string"
|
|
44
39
|
}
|
|
45
40
|
},
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
],
|
|
49
|
-
"additionalProperties": false
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"default": {}
|
|
50
43
|
},
|
|
51
44
|
"options": {
|
|
52
45
|
"type": "array",
|
|
@@ -54,26 +47,27 @@
|
|
|
54
47
|
"type": "object",
|
|
55
48
|
"properties": {
|
|
56
49
|
"label": {
|
|
57
|
-
"type": "string"
|
|
50
|
+
"type": "string",
|
|
51
|
+
"default": "Option A"
|
|
58
52
|
},
|
|
59
53
|
"value": {
|
|
60
|
-
"type": "string"
|
|
54
|
+
"type": "string",
|
|
55
|
+
"default": "a"
|
|
61
56
|
},
|
|
62
57
|
"selected": {
|
|
63
|
-
"type": "boolean"
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"default": false
|
|
64
60
|
}
|
|
65
61
|
},
|
|
66
|
-
"required": [
|
|
67
|
-
"label",
|
|
68
|
-
"value"
|
|
69
|
-
],
|
|
70
62
|
"additionalProperties": false
|
|
71
|
-
}
|
|
63
|
+
},
|
|
64
|
+
"default": [
|
|
65
|
+
{}
|
|
66
|
+
]
|
|
72
67
|
}
|
|
73
68
|
},
|
|
74
69
|
"required": [
|
|
75
|
-
"type"
|
|
76
|
-
"options"
|
|
70
|
+
"type"
|
|
77
71
|
],
|
|
78
72
|
"additionalProperties": false
|
|
79
73
|
}
|
|
@@ -8,27 +8,24 @@
|
|
|
8
8
|
"type": "string",
|
|
9
9
|
"const": "selectBox"
|
|
10
10
|
},
|
|
11
|
-
"answer": {
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
11
|
"meta": {
|
|
15
12
|
"type": "object",
|
|
16
13
|
"properties": {
|
|
17
14
|
"schemaVersion": {
|
|
18
15
|
"type": "string",
|
|
19
|
-
"
|
|
16
|
+
"default": "1.0"
|
|
20
17
|
}
|
|
21
18
|
},
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"default": {}
|
|
21
|
+
},
|
|
22
|
+
"answer": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"default": ""
|
|
26
25
|
}
|
|
27
26
|
},
|
|
28
27
|
"required": [
|
|
29
|
-
"type"
|
|
30
|
-
"answer",
|
|
31
|
-
"meta"
|
|
28
|
+
"type"
|
|
32
29
|
],
|
|
33
30
|
"additionalProperties": false
|
|
34
31
|
}
|
|
@@ -28,32 +28,27 @@
|
|
|
28
28
|
"required": [
|
|
29
29
|
"multiple"
|
|
30
30
|
],
|
|
31
|
-
"additionalProperties": false
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"default": {
|
|
33
|
+
"multiple": false
|
|
34
|
+
}
|
|
32
35
|
},
|
|
33
36
|
"meta": {
|
|
34
37
|
"type": "object",
|
|
35
38
|
"properties": {
|
|
36
39
|
"schemaVersion": {
|
|
37
40
|
"type": "string",
|
|
38
|
-
"
|
|
41
|
+
"default": "1.0"
|
|
39
42
|
},
|
|
40
43
|
"title": {
|
|
41
|
-
"type": "string"
|
|
42
|
-
"const": "Select Box"
|
|
44
|
+
"type": "string"
|
|
43
45
|
},
|
|
44
46
|
"usageDescription": {
|
|
45
|
-
"type": "string"
|
|
46
|
-
"const": "For questions where users select one option from a list."
|
|
47
|
-
},
|
|
48
|
-
"defaultJSON": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"const": "{\n \"type\": \"selectBox\",\n \"attributes\": {\n \"multiple\": false\n },\n \"options\": [\n {\n \"label\": \"Option 1\",\n \"value\": \"option1\"\n }\n ],\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
47
|
+
"type": "string"
|
|
51
48
|
}
|
|
52
49
|
},
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
],
|
|
56
|
-
"additionalProperties": false
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"default": {}
|
|
57
52
|
},
|
|
58
53
|
"options": {
|
|
59
54
|
"type": "array",
|
|
@@ -61,27 +56,27 @@
|
|
|
61
56
|
"type": "object",
|
|
62
57
|
"properties": {
|
|
63
58
|
"label": {
|
|
64
|
-
"type": "string"
|
|
59
|
+
"type": "string",
|
|
60
|
+
"default": "Option A"
|
|
65
61
|
},
|
|
66
62
|
"value": {
|
|
67
|
-
"type": "string"
|
|
63
|
+
"type": "string",
|
|
64
|
+
"default": "a"
|
|
68
65
|
},
|
|
69
66
|
"selected": {
|
|
70
|
-
"type": "boolean"
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"default": false
|
|
71
69
|
}
|
|
72
70
|
},
|
|
73
|
-
"required": [
|
|
74
|
-
"label",
|
|
75
|
-
"value"
|
|
76
|
-
],
|
|
77
71
|
"additionalProperties": false
|
|
78
|
-
}
|
|
72
|
+
},
|
|
73
|
+
"default": [
|
|
74
|
+
{}
|
|
75
|
+
]
|
|
79
76
|
}
|
|
80
77
|
},
|
|
81
78
|
"required": [
|
|
82
|
-
"type"
|
|
83
|
-
"attributes",
|
|
84
|
-
"options"
|
|
79
|
+
"type"
|
|
85
80
|
],
|
|
86
81
|
"additionalProperties": false
|
|
87
82
|
}
|