aboutsummaryrefslogblamecommitdiffstats
path: root/packages/json-schemas/schemas/relayer_api_error_response_schema.ts
blob: 3d3a963642c46551277671386cf783e9484b0d85 (plain) (tree)
1
                                              


















                                                                      
  
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'],
};