Files: 02a191f8e7ff6bee2149956d58dce0c939e7b1c8 / gathering-update / schema.js
904 bytesRaw
1 | const definitions = require('ssb-schema-definitions') |
2 | |
3 | module.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