git ssb

0+

Piet / ssb-loomio



Tree: ac1a79fec1e45652d23a6905c8540851a850a868

Files: ac1a79fec1e45652d23a6905c8540851a850a868 / 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