Commit dbfe7b74a3adb5a6f94f01cd9a3f8fd4d696bd93
Rip out max choice score stuff.
Piet Geursen committed on 2/26/2018, 4:10:27 AMParent: cf1ec11814fe9691e6b8b29c312336e18144f5e5
Files changed
schema/pollTypes/chooseOne.js | changed |
schema/pollTypes/chooseOne.js | ||
---|---|---|
@@ -11,31 +11,19 @@ | ||
11 | 11 … | function create({choices}) { |
12 | 12 … | return { |
13 | 13 … | choices, |
14 | 14 … | type: typeString, |
15 | - maxStanceScore: 1, | |
16 | - maxChoiceScore: 1, | |
17 | 15 … | } |
18 | 16 … | } |
19 | 17 … | |
20 | 18 … | var schema = { |
21 | 19 … | type: 'object', |
22 | - required: ['type', 'maxStanceScore', 'choices'], | |
20 … | + required: ['type', 'choices'], | |
23 | 21 … | properties: { |
24 | 22 … | type: { |
25 | 23 … | type: 'string', |
26 | 24 … | pattern: typeStringPattern |
27 | 25 … | }, |
28 | - maxStanceScore: { | |
29 | - type: 'integer', | |
30 | - minimum: 1, | |
31 | - maximum: 1, | |
32 | - }, | |
33 | - maxChoiceScore: { | |
34 | - type: 'integer', | |
35 | - minimum: 1, | |
36 | - minimum: 1, | |
37 | - }, | |
38 | 26 … | choices: { |
39 | 27 … | type: 'array', |
40 | 28 … | } |
41 | 29 … | } |
Built with git-ssb-web