File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/server/schemas/wallet Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ export const walletHeaderSchema = Type.Object({
5
5
"x-backend-wallet-address" : Type . String ( {
6
6
examples : [ "0x..." ] ,
7
7
description : "Backend wallet address" ,
8
+ maxLength : 42 ,
9
+ minLength : 42 ,
10
+ pattern : "^0x[0-9a-zA-Z]+" ,
8
11
} ) ,
9
12
"x-idempotency-key" : Type . Optional (
10
13
Type . String ( {
@@ -18,6 +21,9 @@ export const walletWithAAHeaderSchema = Type.Object({
18
21
"x-account-address" : Type . Optional (
19
22
Type . String ( {
20
23
description : "Smart account address" ,
24
+ maxLength : 42 ,
25
+ minLength : 42 ,
26
+ pattern : "^0x[0-9a-zA-Z]+" ,
21
27
} ) ,
22
28
) ,
23
29
} ) ;
@@ -34,5 +40,8 @@ export const walletWithAddressParamSchema = Type.Object({
34
40
walletAddress : Type . String ( {
35
41
examples : [ "0x..." ] ,
36
42
description : "Backend wallet address" ,
43
+ maxLength : 42 ,
44
+ minLength : 42 ,
45
+ pattern : "^0x[0-9a-zA-Z]+" ,
37
46
} ) ,
38
47
} ) ;
You can’t perform that action at this time.
0 commit comments