git ssb

0+

Piet / ssb-loomio



Tree: 97bde7ce4cb8f440a82828ea953f2e6f63c7e20e

Files: 97bde7ce4cb8f440a82828ea953f2e6f63c7e20e / poll / schema / details / chooseOne.js

336 bytesRaw
1const { chooseOnePollType } = require('../../../types')
2const typeStringPattern = `^${chooseOnePollType}$`
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