From 36b866dad280006656646a41f7e58a838dbfafe9 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 9 Jun 2017 16:41:37 +0200 Subject: Fix tests --- src/schemas/token_schema.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/schemas/token_schema.ts b/src/schemas/token_schema.ts index 383c28490..1236e07c1 100644 --- a/src/schemas/token_schema.ts +++ b/src/schemas/token_schema.ts @@ -6,8 +6,15 @@ export const tokenSchema = { decimals: {type: 'number'}, address: {$ref: '/addressSchema'}, url: { - type: 'string', - format: 'uri', + oneOf: [ + { + type: 'string', + format: 'uri', + }, + { + enum: [''], + }, + ], }, }, required: ['name', 'symbol', 'decimals', 'address', 'url'], -- cgit