Enforce that error code are ints not number
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user