From f3d5690d56c3e4c7243f72049c98cfde799413af Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Mon, 29 May 2017 23:52:10 +0200 Subject: Add tests for getTokensAsync including schema validation --- src/schemas/token_schema.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/schemas/token_schema.ts (limited to 'src/schemas') diff --git a/src/schemas/token_schema.ts b/src/schemas/token_schema.ts new file mode 100644 index 000000000..01702af68 --- /dev/null +++ b/src/schemas/token_schema.ts @@ -0,0 +1,12 @@ +export const tokenSchema = { + id: '/token', + properties: { + name: {type: 'string'}, + symbol: {type: 'string'}, + decimals: {type: 'number'}, + address: {type: 'string'}, + url: {type: 'string'}, + }, + required: ['name', 'symbol', 'decimals', 'address', 'url'], + type: 'object', +}; -- cgit