aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-09 05:18:24 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-09 05:18:24 +0800
commitcc67c0df51037d093567b82fa4ca7962c5c3bfdd (patch)
tree7dcf8e8ad7932c94e3146faa2f2a9d5e5eb54a05 /packages/json-schemas
parent76b91cbcda160b4143fb36cbcd1c1db24bb68229 (diff)
downloaddexon-sol-tools-cc67c0df51037d093567b82fa4ca7962c5c3bfdd.tar
dexon-sol-tools-cc67c0df51037d093567b82fa4ca7962c5c3bfdd.tar.gz
dexon-sol-tools-cc67c0df51037d093567b82fa4ca7962c5c3bfdd.tar.bz2
dexon-sol-tools-cc67c0df51037d093567b82fa4ca7962c5c3bfdd.tar.lz
dexon-sol-tools-cc67c0df51037d093567b82fa4ca7962c5c3bfdd.tar.xz
dexon-sol-tools-cc67c0df51037d093567b82fa4ca7962c5c3bfdd.tar.zst
dexon-sol-tools-cc67c0df51037d093567b82fa4ca7962c5c3bfdd.zip
Correct orderbook typo
Diffstat (limited to 'packages/json-schemas')
-rw-r--r--packages/json-schemas/schemas/relayer_api_orderbook_response_schema.ts4
-rw-r--r--packages/json-schemas/src/schemas.ts4
-rw-r--r--packages/json-schemas/test/schema_test.ts6
3 files changed, 7 insertions, 7 deletions
diff --git a/packages/json-schemas/schemas/relayer_api_orderbook_response_schema.ts b/packages/json-schemas/schemas/relayer_api_orderbook_response_schema.ts
index 2e5b0c6f2..7c0b8e0df 100644
--- a/packages/json-schemas/schemas/relayer_api_orderbook_response_schema.ts
+++ b/packages/json-schemas/schemas/relayer_api_orderbook_response_schema.ts
@@ -1,5 +1,5 @@
-export const relayerApiOrderBookResponseSchema = {
- id: '/relayerApiOrderBookResponseSchema',
+export const relayerApiOrderbookResponseSchema = {
+ id: '/relayerApiOrderbookResponseSchema',
type: 'object',
properties: {
bids: { $ref: '/relayerApiOrdersResponseSchema' },
diff --git a/packages/json-schemas/src/schemas.ts b/packages/json-schemas/src/schemas.ts
index 002a470be..3bc37f96b 100644
--- a/packages/json-schemas/src/schemas.ts
+++ b/packages/json-schemas/src/schemas.ts
@@ -20,7 +20,7 @@ import { relayerApiFeeRecipientsResponseSchema } from '../schemas/relayer_api_fe
import { relayerApiOrderConfigPayloadSchema } from '../schemas/relayer_api_order_config_payload_schema';
import { relayerApiOrderConfigResponseSchema } from '../schemas/relayer_api_order_config_response_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 {
relayerApiOrdersChannelSubscribePayload,
relayerApiOrdersChannelSubscribeSchema,
@@ -60,7 +60,7 @@ export const schemas = {
relayerApiOrdersSchema,
relayerApiOrderConfigPayloadSchema,
relayerApiOrderConfigResponseSchema,
- relayerApiOrderBookResponseSchema,
+ relayerApiOrderbookResponseSchema,
relayerApiAssetDataPairsResponseSchema,
relayerApiAssetDataTradeInfoSchema,
relayerApiOrdersChannelSubscribeSchema,
diff --git a/packages/json-schemas/test/schema_test.ts b/packages/json-schemas/test/schema_test.ts
index 1f59f4da2..61ef3d7ac 100644
--- a/packages/json-schemas/test/schema_test.ts
+++ b/packages/json-schemas/test/schema_test.ts
@@ -28,7 +28,7 @@ const {
txDataSchema,
paginatedCollectionSchema,
relayerApiErrorResponseSchema,
- relayerApiOrderBookResponseSchema,
+ relayerApiOrderbookResponseSchema,
relayerApiAssetDataPairsResponseSchema,
relayerApiOrderConfigPayloadSchema,
relayerApiOrderConfigResponseSchema,
@@ -623,7 +623,7 @@ describe('Schema', () => {
validateAgainstSchema(testCases, relayerApiOrdersResponseSchema, shouldFail);
});
});
- describe('#relayerApiOrderBookResponseSchema', () => {
+ describe('#relayerApiOrderbookResponseSchema', () => {
it('should validate valid order book responses', () => {
const testCases = [
{
@@ -657,7 +657,7 @@ describe('Schema', () => {
},
},
];
- validateAgainstSchema(testCases, relayerApiOrderBookResponseSchema);
+ validateAgainstSchema(testCases, relayerApiOrderbookResponseSchema);
});
it('should fail for invalid order fill requests', () => {
const testCases = [