aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-09 05:16:59 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-09 05:16:59 +0800
commit76b91cbcda160b4143fb36cbcd1c1db24bb68229 (patch)
tree8963cf452fe1df8d5a80d110873cb5cd3989248c /packages/json-schemas
parent9aacceb0e4549a7a72cae7cbf74ea819db184d80 (diff)
downloaddexon-0x-contracts-76b91cbcda160b4143fb36cbcd1c1db24bb68229.tar
dexon-0x-contracts-76b91cbcda160b4143fb36cbcd1c1db24bb68229.tar.gz
dexon-0x-contracts-76b91cbcda160b4143fb36cbcd1c1db24bb68229.tar.bz2
dexon-0x-contracts-76b91cbcda160b4143fb36cbcd1c1db24bb68229.tar.lz
dexon-0x-contracts-76b91cbcda160b4143fb36cbcd1c1db24bb68229.tar.xz
dexon-0x-contracts-76b91cbcda160b4143fb36cbcd1c1db24bb68229.tar.zst
dexon-0x-contracts-76b91cbcda160b4143fb36cbcd1c1db24bb68229.zip
Enforce that error code are ints not number
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 05740aa54..79e33fc85 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', minimum: 100, maximum: 103 },
+ code: { type: 'integer', 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', minimum: 1000, maximum: 1006 },
+ code: { type: 'integer', minimum: 1000, maximum: 1006 },
reason: { type: 'string' },
},
required: ['field', 'code', 'reason'],