diff options
Diffstat (limited to 'src/schemas')
-rw-r--r-- | src/schemas/ec_signature_schema.ts | 2 | ||||
-rw-r--r-- | src/schemas/order_cancel_schema.ts | 2 | ||||
-rw-r--r-- | src/schemas/order_fill_or_kill_requests_schema.ts | 2 | ||||
-rw-r--r-- | src/schemas/order_fill_requests_schema.ts | 2 | ||||
-rw-r--r-- | src/schemas/token_schema.ts | 14 |
5 files changed, 16 insertions, 6 deletions
diff --git a/src/schemas/ec_signature_schema.ts b/src/schemas/ec_signature_schema.ts index e39a8bd70..df1121989 100644 --- a/src/schemas/ec_signature_schema.ts +++ b/src/schemas/ec_signature_schema.ts @@ -1,4 +1,4 @@ -export const ecSignatureParameter = { +export const ecSignatureParameterSchema = { id: '/ecSignatureParameter', type: 'string', pattern: '^0[xX][0-9A-Fa-f]{64}$', diff --git a/src/schemas/order_cancel_schema.ts b/src/schemas/order_cancel_schema.ts index 5cc8f745c..04b2c179f 100644 --- a/src/schemas/order_cancel_schema.ts +++ b/src/schemas/order_cancel_schema.ts @@ -4,7 +4,7 @@ export const orderCancellationRequestsSchema = { items: { properties: { order: {$ref: '/orderSchema'}, - takerTokenCancelAmount: {type: '/numberSchema'}, + takerTokenCancelAmount: {$ref: '/numberSchema'}, }, required: ['order', 'takerTokenCancelAmount'], type: 'object', diff --git a/src/schemas/order_fill_or_kill_requests_schema.ts b/src/schemas/order_fill_or_kill_requests_schema.ts index 4db7113de..6f7878c45 100644 --- a/src/schemas/order_fill_or_kill_requests_schema.ts +++ b/src/schemas/order_fill_or_kill_requests_schema.ts @@ -4,7 +4,7 @@ export const orderFillOrKillRequestsSchema = { items: { properties: { signedOrder: {$ref: '/signedOrderSchema'}, - fillTakerAmount: {type: '/numberSchema'}, + fillTakerAmount: {$ref: '/numberSchema'}, }, required: ['signedOrder', 'fillTakerAmount'], type: 'object', diff --git a/src/schemas/order_fill_requests_schema.ts b/src/schemas/order_fill_requests_schema.ts index 44f4e33e2..0f3ee1e99 100644 --- a/src/schemas/order_fill_requests_schema.ts +++ b/src/schemas/order_fill_requests_schema.ts @@ -4,7 +4,7 @@ export const orderFillRequestsSchema = { items: { properties: { signedOrder: {$ref: '/signedOrderSchema'}, - takerTokenFillAmount: {type: '/numberSchema'}, + takerTokenFillAmount: {$ref: '/numberSchema'}, }, required: ['signedOrder', 'takerTokenFillAmount'], type: 'object', diff --git a/src/schemas/token_schema.ts b/src/schemas/token_schema.ts index 01702af68..1236e07c1 100644 --- a/src/schemas/token_schema.ts +++ b/src/schemas/token_schema.ts @@ -4,8 +4,18 @@ export const tokenSchema = { name: {type: 'string'}, symbol: {type: 'string'}, decimals: {type: 'number'}, - address: {type: 'string'}, - url: {type: 'string'}, + address: {$ref: '/addressSchema'}, + url: { + oneOf: [ + { + type: 'string', + format: 'uri', + }, + { + enum: [''], + }, + ], + }, }, required: ['name', 'symbol', 'decimals', 'address', 'url'], type: 'object', |