diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-08-03 09:08:36 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-08-03 09:08:36 +0800 |
commit | 0390a5ecbfc79dfd435d3f9e911abd610f33d455 (patch) | |
tree | f1ba180d2d4af7b192c19428b5827bb82227f693 /packages | |
parent | 1ce6579c3a05264f93957b0c2d845a1351f4a3b1 (diff) | |
download | dexon-0x-contracts-0390a5ecbfc79dfd435d3f9e911abd610f33d455.tar dexon-0x-contracts-0390a5ecbfc79dfd435d3f9e911abd610f33d455.tar.gz dexon-0x-contracts-0390a5ecbfc79dfd435d3f9e911abd610f33d455.tar.bz2 dexon-0x-contracts-0390a5ecbfc79dfd435d3f9e911abd610f33d455.tar.lz dexon-0x-contracts-0390a5ecbfc79dfd435d3f9e911abd610f33d455.tar.xz dexon-0x-contracts-0390a5ecbfc79dfd435d3f9e911abd610f33d455.tar.zst dexon-0x-contracts-0390a5ecbfc79dfd435d3f9e911abd610f33d455.zip |
Limit error codes with ranges
Diffstat (limited to 'packages')
-rw-r--r-- | packages/json-schemas/schemas/relayer_api_error_response_schema.ts | 4 |
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'], |