Files: 1f83e2637d5e118ea1d1ee4f5b59c81359d321c5 / schema / mention.js
511 bytesRaw
1 | const { blobIdRegex } = require('ssb-ref') |
2 | |
3 | const mentionSchema = { |
4 | $schema: 'http://json-schema.org/schema#', |
5 | type: 'object', |
6 | required: ['link', 'name'], |
7 | properties: { |
8 | link: { type: 'string', pattern: blobIdRegex }, |
9 | name: { type: 'string', minLength: 3 } |
10 | } |
11 | } |
12 | |
13 | module.exports = mentionSchema |
14 | |
15 | // const mentionsSchema = { |
16 | // type: 'array', |
17 | // items: { |
18 | // anyOf: [ |
19 | // { $ref: '#/definitions/mention' } |
20 | // ] |
21 | // }, |
22 | // definitions: { |
23 | // mention: mentionSchema |
24 | // } |
25 | // } |
26 |
Built with git-ssb-web