git ssb

0+

Piet / ssb-loomio



Tree: 7520a969a39fb3590cb018c3ce4a61457ba569bc

Files: 7520a969a39fb3590cb018c3ce4a61457ba569bc / errors / schema / error.js

665 bytesRaw
1const { ERROR_POSITION_CHOICE, ERROR_POSITION_TYPE, ERROR_POSITION_LATE } = require('../../types')
2
3var schema = {
4 type: 'object',
5 required: ['type', 'position', 'message'],
6 properties: {
7 type: {
8 type: 'string',
9 oneOf: [
10 {
11 type: 'string',
12 pattern: `^${ERROR_POSITION_CHOICE}$`
13
14 },
15 {
16
17 },
18 {
19
20 },
21 ERROR_POSITION_CHOICE,
22 ERROR_POSITION_TYPE,
23 ERROR_POSITION_LATE
24 ]
25 },
26 position: {
27 type: 'object'
28 },
29 message: {
30 type: 'string'
31 },
32 definitions: {
33 errorTypePatterns: {
34
35 }
36 }
37 }
38}
39
40module.exports = schema
41

Built with git-ssb-web