git ssb

0+

Piet / ssb-loomio



Tree: b1794feaa06398b355861bf247975bf7501e5910

Files: b1794feaa06398b355861bf247975bf7501e5910 / poll / schema / chooseOnePoll.js

304 bytesRaw
1const pollSchema = require('./poll')
2const cloneDeep = require('lodash.clonedeep')
3
4const chooseOneSchema = cloneDeep(pollSchema)
5
6// collapse the details down to be ONLY chooseOne
7chooseOneSchema.properties.pollDetails = { $ref: '#/definitions/pollDetails/chooseOne' }
8
9module.exports = chooseOneSchema
10

Built with git-ssb-web