Correct orderbook typo
This commit is contained in:
parent
76b91cbcda
commit
cc67c0df51
@ -1,5 +1,5 @@
|
|||||||
export const relayerApiOrderBookResponseSchema = {
|
export const relayerApiOrderbookResponseSchema = {
|
||||||
id: '/relayerApiOrderBookResponseSchema',
|
id: '/relayerApiOrderbookResponseSchema',
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
bids: { $ref: '/relayerApiOrdersResponseSchema' },
|
bids: { $ref: '/relayerApiOrdersResponseSchema' },
|
||||||
|
@ -20,7 +20,7 @@ import { relayerApiFeeRecipientsResponseSchema } from '../schemas/relayer_api_fe
|
|||||||
import { relayerApiOrderConfigPayloadSchema } from '../schemas/relayer_api_order_config_payload_schema';
|
import { relayerApiOrderConfigPayloadSchema } from '../schemas/relayer_api_order_config_payload_schema';
|
||||||
import { relayerApiOrderConfigResponseSchema } from '../schemas/relayer_api_order_config_response_schema';
|
import { relayerApiOrderConfigResponseSchema } from '../schemas/relayer_api_order_config_response_schema';
|
||||||
import { relayerApiOrderSchema } from '../schemas/relayer_api_order_schema';
|
import { relayerApiOrderSchema } from '../schemas/relayer_api_order_schema';
|
||||||
import { relayerApiOrderBookResponseSchema } from '../schemas/relayer_api_orderbook_response_schema';
|
import { relayerApiOrderbookResponseSchema } from '../schemas/relayer_api_orderbook_response_schema';
|
||||||
import {
|
import {
|
||||||
relayerApiOrdersChannelSubscribePayload,
|
relayerApiOrdersChannelSubscribePayload,
|
||||||
relayerApiOrdersChannelSubscribeSchema,
|
relayerApiOrdersChannelSubscribeSchema,
|
||||||
@ -60,7 +60,7 @@ export const schemas = {
|
|||||||
relayerApiOrdersSchema,
|
relayerApiOrdersSchema,
|
||||||
relayerApiOrderConfigPayloadSchema,
|
relayerApiOrderConfigPayloadSchema,
|
||||||
relayerApiOrderConfigResponseSchema,
|
relayerApiOrderConfigResponseSchema,
|
||||||
relayerApiOrderBookResponseSchema,
|
relayerApiOrderbookResponseSchema,
|
||||||
relayerApiAssetDataPairsResponseSchema,
|
relayerApiAssetDataPairsResponseSchema,
|
||||||
relayerApiAssetDataTradeInfoSchema,
|
relayerApiAssetDataTradeInfoSchema,
|
||||||
relayerApiOrdersChannelSubscribeSchema,
|
relayerApiOrdersChannelSubscribeSchema,
|
||||||
|
@ -28,7 +28,7 @@ const {
|
|||||||
txDataSchema,
|
txDataSchema,
|
||||||
paginatedCollectionSchema,
|
paginatedCollectionSchema,
|
||||||
relayerApiErrorResponseSchema,
|
relayerApiErrorResponseSchema,
|
||||||
relayerApiOrderBookResponseSchema,
|
relayerApiOrderbookResponseSchema,
|
||||||
relayerApiAssetDataPairsResponseSchema,
|
relayerApiAssetDataPairsResponseSchema,
|
||||||
relayerApiOrderConfigPayloadSchema,
|
relayerApiOrderConfigPayloadSchema,
|
||||||
relayerApiOrderConfigResponseSchema,
|
relayerApiOrderConfigResponseSchema,
|
||||||
@ -623,7 +623,7 @@ describe('Schema', () => {
|
|||||||
validateAgainstSchema(testCases, relayerApiOrdersResponseSchema, shouldFail);
|
validateAgainstSchema(testCases, relayerApiOrdersResponseSchema, shouldFail);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe('#relayerApiOrderBookResponseSchema', () => {
|
describe('#relayerApiOrderbookResponseSchema', () => {
|
||||||
it('should validate valid order book responses', () => {
|
it('should validate valid order book responses', () => {
|
||||||
const testCases = [
|
const testCases = [
|
||||||
{
|
{
|
||||||
@ -657,7 +657,7 @@ describe('Schema', () => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
validateAgainstSchema(testCases, relayerApiOrderBookResponseSchema);
|
validateAgainstSchema(testCases, relayerApiOrderbookResponseSchema);
|
||||||
});
|
});
|
||||||
it('should fail for invalid order fill requests', () => {
|
it('should fail for invalid order fill requests', () => {
|
||||||
const testCases = [
|
const testCases = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user