git ssb

0+

Piet / ssb-loomio



Tree: 3c9734dbc87863e2373fcdfa511441b061e7a813

Files: 3c9734dbc87863e2373fcdfa511441b061e7a813 / 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