git ssb

0+

Piet / ssb-loomio



Tree: 4360b02f347aa3bea29d3e95dda409fe21bc3c45

Files: 4360b02f347aa3bea29d3e95dda409fe21bc3c45 / position / schema / details / chooseOne.js

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

Built with git-ssb-web