From 2fa5bb20287c26d404e2c0a372291ae5d9626888 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 22 Nov 2017 16:39:20 -0600 Subject: Autofix json-schemas linter errors --- packages/json-schemas/src/schema_validator.ts | 3 +- packages/json-schemas/src/schemas.ts | 50 +++++++++++++-------------- 2 files changed, 27 insertions(+), 26 deletions(-) (limited to 'packages/json-schemas/src') 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, @@ -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'; @@ -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, -- cgit