aboutsummaryrefslogtreecommitdiffstats
path: root/src/schemas/token_schema.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-06-10 02:40:23 +0800
committerGitHub <noreply@github.com>2017-06-10 02:40:23 +0800
commit81e3b180a9f764989bc76e68a1d55006e2eff80e (patch)
tree28d63c1dd1599a495ce866141390c3a9b3c4a03d /src/schemas/token_schema.ts
parent3c58f07e014ac8de09c6b83654b233d8927c45db (diff)
parent1460966d8f03e5ec0012b21d4c4614c4c3ec44bc (diff)
downloaddexon-sol-tools-81e3b180a9f764989bc76e68a1d55006e2eff80e.tar
dexon-sol-tools-81e3b180a9f764989bc76e68a1d55006e2eff80e.tar.gz
dexon-sol-tools-81e3b180a9f764989bc76e68a1d55006e2eff80e.tar.bz2
dexon-sol-tools-81e3b180a9f764989bc76e68a1d55006e2eff80e.tar.lz
dexon-sol-tools-81e3b180a9f764989bc76e68a1d55006e2eff80e.tar.xz
dexon-sol-tools-81e3b180a9f764989bc76e68a1d55006e2eff80e.tar.zst
dexon-sol-tools-81e3b180a9f764989bc76e68a1d55006e2eff80e.zip
Merge branch 'master' into subscribe-async-tests
Diffstat (limited to 'src/schemas/token_schema.ts')
-rw-r--r--src/schemas/token_schema.ts14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/schemas/token_schema.ts b/src/schemas/token_schema.ts
index 01702af68..1236e07c1 100644
--- a/src/schemas/token_schema.ts
+++ b/src/schemas/token_schema.ts
@@ -4,8 +4,18 @@ export const tokenSchema = {
name: {type: 'string'},
symbol: {type: 'string'},
decimals: {type: 'number'},
- address: {type: 'string'},
- url: {type: 'string'},
+ address: {$ref: '/addressSchema'},
+ url: {
+ oneOf: [
+ {
+ type: 'string',
+ format: 'uri',
+ },
+ {
+ enum: [''],
+ },
+ ],
+ },
},
required: ['name', 'symbol', 'decimals', 'address', 'url'],
type: 'object',