diff options
Diffstat (limited to 'src/schemas/token_schema.ts')
-rw-r--r-- | src/schemas/token_schema.ts | 14 |
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', |