git ssb

0+

Piet / ssb-loomio



Tree: 1370996e72773275a544e0bdd26ee0f6db0e49d8

Files: 1370996e72773275a544e0bdd26ee0f6db0e49d8 / 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