aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/json-schemas/src')
-rw-r--r--packages/json-schemas/src/schema_validator.ts3
-rw-r--r--packages/json-schemas/src/schemas.ts50
2 files changed, 27 insertions, 26 deletions
diff --git a/packages/json-schemas/src/schema_validator.ts b/packages/json-schemas/src/schema_validator.ts
index 0bc88cc45..c91f49340 100644
--- a/packages/json-schemas/src/schema_validator.ts
+++ b/packages/json-schemas/src/schema_validator.ts
@@ -1,5 +1,6 @@
+import {Schema, Validator, ValidatorResult} from 'jsonschema';
import values = require('lodash.values');
-import {Validator, ValidatorResult, Schema} from 'jsonschema';
+
import {schemas} from './schemas';
export class SchemaValidator {
diff --git a/packages/json-schemas/src/schemas.ts b/packages/json-schemas/src/schemas.ts
index a8e5ecbcb..69164cbc7 100644
--- a/packages/json-schemas/src/schemas.ts
+++ b/packages/json-schemas/src/schemas.ts
@@ -1,10 +1,10 @@
import {
- numberSchema,
addressSchema,
+ numberSchema,
} from '../schemas/basic_type_schemas';
import {
- ecSignatureSchema,
ecSignatureParameterSchema,
+ ecSignatureSchema,
} from '../schemas/ec_signature_schema';
import {
indexFilterValuesSchema,
@@ -26,24 +26,25 @@ import {
signedOrderSchema,
} from '../schemas/order_schemas';
import {
- blockParamSchema,
- subscriptionOptsSchema,
-} from '../schemas/subscription_opts_schema';
-import {
- tokenSchema,
-} from '../schemas/token_schema';
-import {
- signedOrdersSchema,
-} from '../schemas/signed_orders_schema';
-import {
relayerApiErrorResponseSchema,
} from '../schemas/relayer_api_error_response_schema';
import {
+ relayerApiFeesPayloadSchema,
+} from '../schemas/relayer_api_fees_payload_schema';
+import {
relayerApiFeesResponseSchema,
} from '../schemas/relayer_api_fees_response_schema';
import {
- relayerApiFeesPayloadSchema,
-} from '../schemas/relayer_api_fees_payload_schema';
+ relayerApiOrderbookChannelSubscribePayload,
+ relayerApiOrderbookChannelSubscribeSchema,
+} from '../schemas/relayer_api_orberbook_channel_subscribe_schema';
+import {
+ relayerApiOrderbookChannelSnapshotPayload,
+ relayerApiOrderbookChannelSnapshotSchema,
+} from '../schemas/relayer_api_orderbook_channel_snapshot_schema';
+import {
+ relayerApiOrderbookChannelUpdateSchema,
+} from '../schemas/relayer_api_orderbook_channel_update_response_schema';
import {
relayerApiOrderBookResponseSchema,
} from '../schemas/relayer_api_orderbook_response_schema';
@@ -52,20 +53,19 @@ import {
relayerApiTokenTradeInfoSchema,
} from '../schemas/relayer_api_token_pairs_response_schema';
import {
- jsNumber,
- txDataSchema,
-} from '../schemas/tx_data_schema';
+ signedOrdersSchema,
+} from '../schemas/signed_orders_schema';
import {
- relayerApiOrderbookChannelSubscribeSchema,
- relayerApiOrderbookChannelSubscribePayload,
-} from '../schemas/relayer_api_orberbook_channel_subscribe_schema';
+ blockParamSchema,
+ subscriptionOptsSchema,
+} from '../schemas/subscription_opts_schema';
import {
- relayerApiOrderbookChannelUpdateSchema,
-} from '../schemas/relayer_api_orderbook_channel_update_response_schema';
+ tokenSchema,
+} from '../schemas/token_schema';
import {
- relayerApiOrderbookChannelSnapshotSchema,
- relayerApiOrderbookChannelSnapshotPayload,
-} from '../schemas/relayer_api_orderbook_channel_snapshot_schema';
+ jsNumber,
+ txDataSchema,
+} from '../schemas/tx_data_schema';
export const schemas = {
numberSchema,