git ssb

0+

mixmix / ssb-gathering-schema



Tree: e4eac9ccb82c20dcc8e3e9ea749f3557e168ec56

Files: e4eac9ccb82c20dcc8e3e9ea749f3557e168ec56 / gathering-update / schema.js

904 bytesRaw
1const definitions = require('ssb-schema-definitions')
2
3module.exports = {
4 $schema: 'http://json-schema.org/schema#',
5 type: 'object',
6 required: ['type', 'about'],
7 properties: {
8 type: {
9 type: 'string',
10 pattern: '^about$'
11 },
12 about: { $ref: '#/definitions/messageId' },
13 title: { type: 'string' },
14 description: { type: 'string' },
15 location: { type: 'string' },
16 startDateTime: {
17 type: 'object',
18 required: ['epoch'],
19 properties: {
20 epoch: { type: 'integer' },
21 tz: { type: 'string' }
22 }
23 },
24 image: {
25 type: 'object',
26 required: ['link'],
27 properties: {
28 link: { $ref: '#/definitions/blobId' },
29 name: { type: 'string' },
30 size: { type: 'integer' },
31 type: {
32 type: 'string',
33 pattern: '^image/\\w+$'
34 }
35 }
36 }
37 },
38 definitions: definitions
39}
40

Built with git-ssb-web