chore: add whole number schema

This commit is contained in:
Fabio Berger
2018-10-21 19:20:36 +02:00
parent 7e24c04c0b
commit b9dccf9da3
3 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
{
"id": "/wholeNumberSchema",
"type": "string",
"pattern": "^\\d+$"
}

View File

@@ -34,6 +34,7 @@ import * as signedOrderSchema from '../schemas/signed_order_schema.json';
import * as signedOrdersSchema from '../schemas/signed_orders_schema.json';
import * as tokenSchema from '../schemas/token_schema.json';
import * as txDataSchema from '../schemas/tx_data_schema.json';
import * as wholeNumberSchema from '../schemas/whole_number_schema.json';
import * as zeroExTransactionSchema from '../schemas/zero_ex_transaction_schema.json';
export const schemas = {
@@ -74,4 +75,5 @@ export const schemas = {
relayerApiOrdersResponseSchema,
relayerApiAssetDataPairsSchema,
zeroExTransactionSchema,
wholeNumberSchema,
};

View File

@@ -43,6 +43,7 @@
"./schemas/js_number.json",
"./schemas/zero_ex_transaction_schema.json",
"./schemas/tx_data_schema.json",
"./schemas/index_filter_values_schema.json"
"./schemas/index_filter_values_schema.json",
"./schemas/wholeNumberSchema.json"
]
}