From 0390a5ecbfc79dfd435d3f9e911abd610f33d455 Mon Sep 17 00:00:00 2001 From: fragosti Date: Thu, 2 Aug 2018 18:08:36 -0700 Subject: Limit error codes with ranges --- packages/json-schemas/schemas/relayer_api_error_response_schema.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/json-schemas') diff --git a/packages/json-schemas/schemas/relayer_api_error_response_schema.ts b/packages/json-schemas/schemas/relayer_api_error_response_schema.ts index 3a71cdfa6..05740aa54 100644 --- a/packages/json-schemas/schemas/relayer_api_error_response_schema.ts +++ b/packages/json-schemas/schemas/relayer_api_error_response_schema.ts @@ -2,7 +2,7 @@ export const relayerApiErrorResponseSchema = { id: '/relayerApiErrorResponseSchema', type: 'object', properties: { - code: { type: 'number' }, + code: { type: 'number', minimum: 100, maximum: 103 }, reason: { type: 'string' }, validationErrors: { type: 'array', @@ -10,7 +10,7 @@ export const relayerApiErrorResponseSchema = { type: 'object', properties: { field: { type: 'string' }, - code: { type: 'number' }, + code: { type: 'number', minimum: 1000, maximum: 1006 }, reason: { type: 'string' }, }, required: ['field', 'code', 'reason'], -- cgit v1.2.3