Files: f368010bd5cd7dd957193a674e18bd6e6cad8233 / position / schema / chooseOnePosition.js
316 bytesRaw
1 | const positionSchema = require('./position') |
2 | const cloneDeep = require('lodash.clonedeep') |
3 | |
4 | const chooseOneSchema = cloneDeep(positionSchema) |
5 | |
6 | // collapse the details down to be ONLY chooseOne |
7 | chooseOneSchema.properties.pollDetails = { $ref: '#/definitions/pollDetails/chooseOne' } |
8 | |
9 | module.exports = chooseOneSchema |
10 |
Built with git-ssb-web