aboutsummaryrefslogtreecommitdiffstats
path: root/src/schemas/basic_type_schemas.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/schemas/basic_type_schemas.ts')
-rw-r--r--src/schemas/basic_type_schemas.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/schemas/basic_type_schemas.ts b/src/schemas/basic_type_schemas.ts
new file mode 100644
index 000000000..c3b81185d
--- /dev/null
+++ b/src/schemas/basic_type_schemas.ts
@@ -0,0 +1,11 @@
+export const addressSchema = {
+ id: '/addressSchema',
+ type: 'string',
+ pattern: '^0[xX][0-9A-Fa-f]{40}$',
+};
+
+export const numberSchema = {
+ id: '/numberSchema',
+ type: 'string',
+ pattern: '^\\d+(\\.\\d+)?$',
+};