Add json-schemas package to mono repo

This commit is contained in:
Brandon Millman
2017-11-13 19:32:01 -05:00
parent 08963f269b
commit 56b5619d24
41 changed files with 1557 additions and 20 deletions

View File

@@ -0,0 +1,21 @@
export const relayerApiErrorResponseSchema = {
id: '/RelayerApiErrorResponse',
type: 'object',
properties: {
code: {type: 'number'},
reason: {type: 'string'},
validationErrors: {
type: 'array',
items: {
type: 'object',
properties: {
field: {type: 'string'},
code: {type: 'number'},
reason: {type: 'string'},
},
required: ['field', 'code', 'reason'],
},
},
},
required: ['code', 'reason'],
};