aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/schemas
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-09 01:07:38 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-09 01:14:52 +0800
commitec198343b551020cfed321937d680af59c2ce127 (patch)
tree89e15ec9f13325d82dc159254baf6ca27171e729 /packages/website/ts/schemas
parent1233c33116a389f34ac90768c5ef43c8bbfbf514 (diff)
downloaddexon-sol-tools-ec198343b551020cfed321937d680af59c2ce127.tar
dexon-sol-tools-ec198343b551020cfed321937d680af59c2ce127.tar.gz
dexon-sol-tools-ec198343b551020cfed321937d680af59c2ce127.tar.bz2
dexon-sol-tools-ec198343b551020cfed321937d680af59c2ce127.tar.lz
dexon-sol-tools-ec198343b551020cfed321937d680af59c2ce127.tar.xz
dexon-sol-tools-ec198343b551020cfed321937d680af59c2ce127.tar.zst
dexon-sol-tools-ec198343b551020cfed321937d680af59c2ce127.zip
Make naming of schemas consistent
Diffstat (limited to 'packages/website/ts/schemas')
-rw-r--r--packages/website/ts/schemas/portal_order_schema.ts (renamed from packages/website/ts/schemas/order_schema.ts)2
-rw-r--r--packages/website/ts/schemas/portal_token_metadata.ts (renamed from packages/website/ts/schemas/token_schema.ts)2
-rw-r--r--packages/website/ts/schemas/validator.ts8
3 files changed, 6 insertions, 6 deletions
diff --git a/packages/website/ts/schemas/order_schema.ts b/packages/website/ts/schemas/portal_order_schema.ts
index 4d427d8ce..ea8aeabc6 100644
--- a/packages/website/ts/schemas/order_schema.ts
+++ b/packages/website/ts/schemas/portal_order_schema.ts
@@ -1,4 +1,4 @@
-export const orderSchema = {
+export const portalOrderSchema = {
id: '/PortalOrder',
properties: {
signedOrder: { $ref: '/SignedOrder' },
diff --git a/packages/website/ts/schemas/token_schema.ts b/packages/website/ts/schemas/portal_token_metadata.ts
index 4d1febfee..0455c2ac1 100644
--- a/packages/website/ts/schemas/token_schema.ts
+++ b/packages/website/ts/schemas/portal_token_metadata.ts
@@ -1,4 +1,4 @@
-export const tokenSchema = {
+export const portalTokenMetadataSchema = {
id: '/PortalTokenMetadata',
properties: {
name: { type: 'string' },
diff --git a/packages/website/ts/schemas/validator.ts b/packages/website/ts/schemas/validator.ts
index f0b5e6676..dac0f0098 100644
--- a/packages/website/ts/schemas/validator.ts
+++ b/packages/website/ts/schemas/validator.ts
@@ -1,12 +1,12 @@
import { SchemaValidator } from '@0xproject/json-schemas';
import { Schema as JSONSchema, Validator } from 'jsonschema';
import { orderMetadataSchema } from 'ts/schemas/metadata_schema';
-import { orderSchema } from 'ts/schemas/order_schema';
-import { tokenSchema } from 'ts/schemas/token_schema';
+import { portalOrderSchema } from 'ts/schemas/portal_order_schema';
+import { portalTokenMetadataSchema } from 'ts/schemas/portal_token_metadata';
const validator = new SchemaValidator();
-validator.addSchema(tokenSchema);
+validator.addSchema(portalTokenMetadataSchema);
validator.addSchema(orderMetadataSchema);
-validator.addSchema(orderSchema);
+validator.addSchema(portalOrderSchema);
export { validator };