Files: 52b538d1c0b57ad5fe2d8c3e4af7b5d03fc6ebbb / schemas / book.js
393 bytesRaw
1 | module.exports = { |
2 | $schema: 'http://json-schema.org/schema#', |
3 | type: 'object', |
4 | required: ['type', 'title', 'authors'], |
5 | properties: { |
6 | type: {type: 'string', pattern: 'bookclub'}, |
7 | title: {type: 'string'}, |
8 | authors: { |
9 | oneOf: [ |
10 | {type: 'string'}, |
11 | {type: 'array', items: {allOf: [{type: 'string'}] |
12 | }} |
13 | ] |
14 | } |
15 | // TODO add other fields |
16 | } |
17 | } |
18 | |
19 |
Built with git-ssb-web