diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-09 22:41:37 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-09 22:41:37 +0800 |
commit | 36b866dad280006656646a41f7e58a838dbfafe9 (patch) | |
tree | 36cc5245a28629ecdcd02d39229207fe541f0fed /src/schemas | |
parent | 4b9c681912dbdc427dc7c9cdb4abd34520aaa1d6 (diff) | |
download | dexon-sol-tools-36b866dad280006656646a41f7e58a838dbfafe9.tar dexon-sol-tools-36b866dad280006656646a41f7e58a838dbfafe9.tar.gz dexon-sol-tools-36b866dad280006656646a41f7e58a838dbfafe9.tar.bz2 dexon-sol-tools-36b866dad280006656646a41f7e58a838dbfafe9.tar.lz dexon-sol-tools-36b866dad280006656646a41f7e58a838dbfafe9.tar.xz dexon-sol-tools-36b866dad280006656646a41f7e58a838dbfafe9.tar.zst dexon-sol-tools-36b866dad280006656646a41f7e58a838dbfafe9.zip |
Fix tests
Diffstat (limited to 'src/schemas')
-rw-r--r-- | src/schemas/token_schema.ts | 11 |
1 files changed, 9 insertions, 2 deletions
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'], |