Skip to content

fix(validations): coerce duplicate query parameter arrays into single values#6121

Open
MasterJi27 wants to merge 1 commit into
JhaSourav07:mainfrom
MasterJi27:fix/duplicate-query-coercion-5267
Open

fix(validations): coerce duplicate query parameter arrays into single values#6121
MasterJi27 wants to merge 1 commit into
JhaSourav07:mainfrom
MasterJi27:fix/duplicate-query-coercion-5267

Conversation

@MasterJi27

Copy link
Copy Markdown
Contributor

Fixes #5267

… values

Closes JhaSourav07#5267

- Add coerceQueryParams() to extract the first value of duplicate keys
- Apply coerceQueryParams() before Zod validation in all GET endpoints
- Add unit tests for duplicate parameter coercion
@vercel

vercel Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

@MasterJi27 is attempting to deploy a commit to the jhasourav07's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Size Report (Gzipped Sizes)

✨ No significant bundle size changes detected.

📊 Summary of Totals

Category PR Size Base Size Difference
Total JS 3694.34 KB 3694.34 KB 0 B
Total CSS 296.06 KB 296.06 KB 0 B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Coerce duplicate query parameter arrays into single values

1 participant