test(api validation): check layout query validation boundaries#1918
test(api validation): check layout query validation boundaries#1918Shreeya1207 wants to merge 4 commits into
Conversation
|
@Shreeya1207 is attempting to deploy a commit to the jhasourav07's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Please pull the latest changes and resolve the conflicts so we can review it! git fetch origin
git rebase origin/main
# resolve any conflicts, then:
git push --force-with-leaseOnce resolved, the |
2 similar comments
|
Please pull the latest changes and resolve the conflicts so we can review it! git fetch origin
git rebase origin/main
# resolve any conflicts, then:
git push --force-with-leaseOnce resolved, the |
|
Please pull the latest changes and resolve the conflicts so we can review it! git fetch origin
git rebase origin/main
# resolve any conflicts, then:
git push --force-with-leaseOnce resolved, the |
|
🚨 Hey @Shreeya1207, the CI Pipeline is failing on this PR and it has been marked as Please fix the issues before this can be reviewed. Here's how: 1. Run checks locally before pushing: npm run format:check # Check Prettier formatting
npm run lint # Run ESLint
npm run typecheck # TypeScript type check
npm run test # Run unit tests (Vitest)
npm run build # Verify production build passes2. Auto-fix common issues: npm run format # Auto-fix formatting with Prettier
npm run lint -- --fix # Auto-fix lint errors where possible3. Check the full failure log here: Once you push a fix and the CI passes, the |
Description
Fixes #1464
Added validation test coverage for the
?layout=query parameter using the unsupported valueunsupported_layout.This test ensures that unsupported layout values are correctly rejected by the validation layer and that the API returns a
400 Bad Requestresponse for invalid layout formats. The added test strengthens query parameter validation and helps prevent invalid input from reaching application logic.Pillar
Checklist before requesting a review:
CONTRIBUTING.mdfile.npm run formatandnpm run lintlocally.