Skip to content

Commit 6587eca

Browse files
committed
Merge branch 'main' into ph/txWorkerRedis
2 parents bf8bad4 + ec20496 commit 6587eca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/server/schemas/wallet/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ export const walletHeaderSchema = Type.Object({
55
"x-backend-wallet-address": Type.String({
66
examples: ["0x..."],
77
description: "Backend wallet address",
8+
maxLength: 42,
9+
minLength: 42,
10+
pattern: "^0x[0-9a-zA-Z]+",
811
}),
912
"x-idempotency-key": Type.Optional(
1013
Type.String({
@@ -18,6 +21,9 @@ export const walletWithAAHeaderSchema = Type.Object({
1821
"x-account-address": Type.Optional(
1922
Type.String({
2023
description: "Smart account address",
24+
maxLength: 42,
25+
minLength: 42,
26+
pattern: "^0x[0-9a-zA-Z]+",
2127
}),
2228
),
2329
});
@@ -34,5 +40,8 @@ export const walletWithAddressParamSchema = Type.Object({
3440
walletAddress: Type.String({
3541
examples: ["0x..."],
3642
description: "Backend wallet address",
43+
maxLength: 42,
44+
minLength: 42,
45+
pattern: "^0x[0-9a-zA-Z]+",
3746
}),
3847
});

0 commit comments

Comments
 (0)