git ssb

0+

Piet / ssb-loomio



Tree: 1fe8a8808eb5537d88dcaf30930d6d57f2986822

Files: 1fe8a8808eb5537d88dcaf30930d6d57f2986822 / poll / schema / details / chooseOne.js

322 bytesRaw
1const { CHOOSE_ONE } = require('../../../types')
2const typeStringPattern = `^${CHOOSE_ONE}$`
3
4var schema = {
5 type: 'object',
6 required: ['type', 'choices'],
7 properties: {
8 type: {
9 type: 'string',
10 pattern: typeStringPattern
11 },
12 choices: {
13 type: 'array'
14 }
15 }
16}
17
18module.exports = schema
19

Built with git-ssb-web