Files: 6d51512c0a6ee2e9c2d4efe211c22333055c8c03 / position / schema / details / chooseOne.js
340 bytesRaw
1 | const { CHOOSE_ONE } = require('../../../types') |
2 | const typeStringPattern = `^${CHOOSE_ONE}$` |
3 | |
4 | var 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 | |
19 | module.exports = schema |
20 |
Built with git-ssb-web