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 @@ -3,6 +3,9 @@ import { Type } from "@sinclair/typebox";
3
3
export const walletHeaderSchema = Type . Object ( {
4
4
"x-backend-wallet-address" : Type . String ( {
5
5
description : "Backend wallet address" ,
6
+ maxLength : 42 ,
7
+ minLength : 42 ,
8
+ pattern : "^0x[0-9a-zA-Z]+" ,
6
9
} ) ,
7
10
"x-idempotency-key" : Type . Optional (
8
11
Type . String ( {
@@ -17,6 +20,9 @@ export const walletWithAAHeaderSchema = Type.Object({
17
20
"x-account-address" : Type . Optional (
18
21
Type . String ( {
19
22
description : "Smart account address" ,
23
+ maxLength : 42 ,
24
+ minLength : 42 ,
25
+ pattern : "^0x[0-9a-zA-Z]+" ,
20
26
} ) ,
21
27
) ,
22
28
} ) ;
@@ -29,6 +35,9 @@ export const walletParamSchema = Type.Object({
29
35
walletAddress : Type . String ( {
30
36
examples : [ "0x..." ] ,
31
37
description : "Backend wallet address" ,
38
+ maxLength : 42 ,
39
+ minLength : 42 ,
40
+ pattern : "^0x[0-9a-zA-Z]+" ,
32
41
} ) ,
33
42
} ) ;
34
43
You can’t perform that action at this time.
0 commit comments