aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-03 09:08:36 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-03 09:08:36 +0800
commit0390a5ecbfc79dfd435d3f9e911abd610f33d455 (patch)
treef1ba180d2d4af7b192c19428b5827bb82227f693 /packages/json-schemas
parent1ce6579c3a05264f93957b0c2d845a1351f4a3b1 (diff)
downloaddexon-sol-tools-0390a5ecbfc79dfd435d3f9e911abd610f33d455.tar
dexon-sol-tools-0390a5ecbfc79dfd435d3f9e911abd610f33d455.tar.gz
dexon-sol-tools-0390a5ecbfc79dfd435d3f9e911abd610f33d455.tar.bz2
dexon-sol-tools-0390a5ecbfc79dfd435d3f9e911abd610f33d455.tar.lz
dexon-sol-tools-0390a5ecbfc79dfd435d3f9e911abd610f33d455.tar.xz
dexon-sol-tools-0390a5ecbfc79dfd435d3f9e911abd610f33d455.tar.zst
dexon-sol-tools-0390a5ecbfc79dfd435d3f9e911abd610f33d455.zip
Limit error codes with ranges
Diffstat (limited to 'packages/json-schemas')
-rw-r--r--packages/json-schemas/schemas/relayer_api_error_response_schema.ts4
1 files changed, 2 insertions, 2 deletions
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'],