Skip to content

Stronger bulk CSV schema#457

Merged
Nitya-003 merged 4 commits into
Nitya-003:mainfrom
Aditya8369:446
Jun 20, 2026
Merged

Stronger bulk CSV schema#457
Nitya-003 merged 4 commits into
Nitya-003:mainfrom
Aditya8369:446

Conversation

@Aditya8369

Copy link
Copy Markdown
Contributor

Implemented stronger bulk CSV schema validation in backend/utils/bulkCsvValidation.js.

Changes:

Kept header validation strict (same exact expected headers/order).
Added action-aware row validation for ISSUE_CREDENTIAL and LINK_WALLET.
Enforced signature-dependent rules consistently:
If signature is non-empty: nonce and expiresat are required.
If signature is empty: unsigned/challenge-only rows are allowed (nonce/expiresat not required), matching the current bulk behavior.
Improved error messages to be column-focused and include expected formats/conditions, e.g.:
Row N: column walletaddress invalid. Expected /^0x[a-fA-F0-9]{40}$/
Row N: column nonce required because column signature is non-empty...

closes #446

@vercel

vercel Bot commented Jun 20, 2026

Copy link
Copy Markdown

@Aditya8369 is attempting to deploy a commit to the Nitya Gosain's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Nitya-003 Nitya-003 added bug Something isn't working gssoc:approved gssoc'26 approved quality:clean *1.2 for contributor +5 pts for mentor level:intermediate 35 pts for contributor 20 pts for mentor type:bug labels Jun 20, 2026
@Nitya-003 Nitya-003 merged commit db6b8f6 into Nitya-003:main Jun 20, 2026
3 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working gssoc:approved gssoc'26 approved level:intermediate 35 pts for contributor 20 pts for mentor quality:clean *1.2 for contributor +5 pts for mentor type:bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stronger bulk CSV schema

2 participants