protocol/packages/json-schemas/schemas/relayer_api_error_response_schema.ts
2018-08-08 14:16:59 -07:00

22 lines
680 B
TypeScript

export const relayerApiErrorResponseSchema = {
id: '/relayerApiErrorResponseSchema',
type: 'object',
properties: {
code: { type: 'integer', minimum: 100, maximum: 103 },
reason: { type: 'string' },
validationErrors: {
type: 'array',
items: {
type: 'object',
properties: {
field: { type: 'string' },
code: { type: 'integer', minimum: 1000, maximum: 1006 },
reason: { type: 'string' },
},
required: ['field', 'code', 'reason'],
},
},
},
required: ['code', 'reason'],
};