aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/schemas
diff options
context:
space:
mode:
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 };