UNPKG

471 BPlain TextView Raw
1const endpoint = {
2 type: 'object',
3 properties: {
4 type: { type: 'string', pattern: 'discord|messenger' },
5 id: { type: 'string', pattern: '\\d+' },
6 readonly: { type: 'boolean' }
7 },
8 required: [
9 'type',
10 'id'
11 ]
12}
13
14const connection = {
15 properties: {
16 name: { type: 'string' },
17 endpoints: {
18 type: 'array',
19 items: [
20 endpoint
21 ]
22 }
23 },
24 required: [
25 'name'
26 ]
27}
28
29export default {
30 endpoint,
31 connection
32}