Autofix json-schemas linter errors
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import {
|
||||
numberSchema,
|
||||
addressSchema,
|
||||
numberSchema,
|
||||
} from '../schemas/basic_type_schemas';
|
||||
import {
|
||||
ecSignatureSchema,
|
||||
ecSignatureParameterSchema,
|
||||
ecSignatureSchema,
|
||||
} from '../schemas/ec_signature_schema';
|
||||
import {
|
||||
indexFilterValuesSchema,
|
||||
@@ -25,25 +25,26 @@ import {
|
||||
orderSchema,
|
||||
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';
|
||||
@@ -51,21 +52,20 @@ import {
|
||||
relayerApiTokenPairsResponseSchema,
|
||||
relayerApiTokenTradeInfoSchema,
|
||||
} from '../schemas/relayer_api_token_pairs_response_schema';
|
||||
import {
|
||||
signedOrdersSchema,
|
||||
} from '../schemas/signed_orders_schema';
|
||||
import {
|
||||
blockParamSchema,
|
||||
subscriptionOptsSchema,
|
||||
} from '../schemas/subscription_opts_schema';
|
||||
import {
|
||||
tokenSchema,
|
||||
} from '../schemas/token_schema';
|
||||
import {
|
||||
jsNumber,
|
||||
txDataSchema,
|
||||
} from '../schemas/tx_data_schema';
|
||||
import {
|
||||
relayerApiOrderbookChannelSubscribeSchema,
|
||||
relayerApiOrderbookChannelSubscribePayload,
|
||||
} from '../schemas/relayer_api_orberbook_channel_subscribe_schema';
|
||||
import {
|
||||
relayerApiOrderbookChannelUpdateSchema,
|
||||
} from '../schemas/relayer_api_orderbook_channel_update_response_schema';
|
||||
import {
|
||||
relayerApiOrderbookChannelSnapshotSchema,
|
||||
relayerApiOrderbookChannelSnapshotPayload,
|
||||
} from '../schemas/relayer_api_orderbook_channel_snapshot_schema';
|
||||
|
||||
export const schemas = {
|
||||
numberSchema,
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import 'mocha';
|
||||
import forEach = require('lodash.foreach');
|
||||
import * as dirtyChai from 'dirty-chai';
|
||||
import * as chai from 'chai';
|
||||
import BigNumber from 'bignumber.js';
|
||||
import * as chai from 'chai';
|
||||
import * as dirtyChai from 'dirty-chai';
|
||||
import promisify = require('es6-promisify');
|
||||
import {SchemaValidator, schemas} from '../src/index';
|
||||
import forEach = require('lodash.foreach');
|
||||
import 'mocha';
|
||||
|
||||
import {schemas, SchemaValidator} from '../src/index';
|
||||
|
||||
chai.config.includeStack = true;
|
||||
chai.use(dirtyChai);
|
||||
|
||||
Reference in New Issue
Block a user