Files: c22975ff5c372669572525d717f2296ea5c14129 / schema / blog.js
553 bytesRaw
1 | const { blobIdRegex } = require('ssb-ref') |
2 | |
3 | module.exports = { |
4 | $schema: 'http://json-schema.org/schema#', |
5 | type: 'object', |
6 | required: ['type', 'title', 'blog'], |
7 | properties: { |
8 | type: {type: 'string', pattern: 'blog'}, |
9 | title: {type: 'string'}, |
10 | blog: {type: 'string', pattern: blobIdRegex}, |
11 | summary: { |
12 | oneOf: [ |
13 | {type: 'string'}, |
14 | {type: 'null'} |
15 | ] |
16 | }, |
17 | thumbnail: { |
18 | oneOf: [ |
19 | {type: 'string', pattern: blobIdRegex}, |
20 | {type: 'null'} |
21 | ] |
22 | }, |
23 | channel: {type: 'string'} |
24 | } |
25 | } |
26 |
Built with git-ssb-web