git ssb

0+

Piet / ssb-loomio



Tree: f368010bd5cd7dd957193a674e18bd6e6cad8233

Files: f368010bd5cd7dd957193a674e18bd6e6cad8233 / position / schema / chooseOnePosition.js

316 bytesRaw
1const positionSchema = require('./position')
2const cloneDeep = require('lodash.clonedeep')
3
4const chooseOneSchema = cloneDeep(positionSchema)
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