aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-22 01:20:36 +0800
committerFabio Berger <me@fabioberger.com>2018-10-22 01:20:36 +0800
commitb9dccf9da340e276ddf6f6dd35118cc6fb77026f (patch)
tree221c90300ea8d231034b939a2befeb92fbab938d
parent7e24c04c0bd45cae753aac818b1ec0a64bd85fa4 (diff)
downloaddexon-sol-tools-b9dccf9da340e276ddf6f6dd35118cc6fb77026f.tar
dexon-sol-tools-b9dccf9da340e276ddf6f6dd35118cc6fb77026f.tar.gz
dexon-sol-tools-b9dccf9da340e276ddf6f6dd35118cc6fb77026f.tar.bz2
dexon-sol-tools-b9dccf9da340e276ddf6f6dd35118cc6fb77026f.tar.lz
dexon-sol-tools-b9dccf9da340e276ddf6f6dd35118cc6fb77026f.tar.xz
dexon-sol-tools-b9dccf9da340e276ddf6f6dd35118cc6fb77026f.tar.zst
dexon-sol-tools-b9dccf9da340e276ddf6f6dd35118cc6fb77026f.zip
chore: add whole number schema
-rw-r--r--packages/json-schemas/schemas/whole_number_schema.json5
-rw-r--r--packages/json-schemas/src/schemas.ts2
-rw-r--r--packages/json-schemas/tsconfig.json3
3 files changed, 9 insertions, 1 deletions
diff --git a/packages/json-schemas/schemas/whole_number_schema.json b/packages/json-schemas/schemas/whole_number_schema.json
new file mode 100644
index 000000000..944ce820e
--- /dev/null
+++ b/packages/json-schemas/schemas/whole_number_schema.json
@@ -0,0 +1,5 @@
+{
+ "id": "/wholeNumberSchema",
+ "type": "string",
+ "pattern": "^\\d+$"
+}
diff --git a/packages/json-schemas/src/schemas.ts b/packages/json-schemas/src/schemas.ts
index 8318df617..8ece5de75 100644
--- a/packages/json-schemas/src/schemas.ts
+++ b/packages/json-schemas/src/schemas.ts
@@ -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,
};
diff --git a/packages/json-schemas/tsconfig.json b/packages/json-schemas/tsconfig.json
index 425dfcfe1..76d2cf240 100644
--- a/packages/json-schemas/tsconfig.json
+++ b/packages/json-schemas/tsconfig.json
@@ -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"
]
}