git ssb

0+

mixmix / scuttle-blog



Tree: ab2a7ca4c54c5bcaaffdd55eaad2490350509757

Files: ab2a7ca4c54c5bcaaffdd55eaad2490350509757 / schema / blog.js

553 bytesRaw
1const { blobIdRegex } = require('ssb-ref')
2
3module.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