Skip to content

Commit a364d40

Browse files
authored
fix: Support up to 200 char limit for idempotency key (#787)
1 parent 789340a commit a364d40

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/server/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export const initServer = async () => {
6565

6666
// Start the server with middleware.
6767
const server: FastifyInstance = fastify({
68+
maxParamLength: 200,
6869
connectionTimeout: SERVER_CONNECTION_TIMEOUT,
6970
disableRequestLogging: true,
7071
trustProxy,

src/server/schemas/wallet/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const walletHeaderSchema = Type.Object({
1212
},
1313
"x-idempotency-key": Type.Optional(
1414
Type.String({
15+
maxLength: 200,
1516
description: `Transactions submitted with the same idempotency key will be de-duplicated. Only the last ${env.TRANSACTION_HISTORY_COUNT} transactions are compared.`,
1617
}),
1718
),

0 commit comments

Comments
 (0)