Skip to content

Validate account IDs before JSON export - #120

Merged
Justice989810 merged 3 commits into
Justice989810:mainfrom
Cornelius128:fix/issue-79-export-account-validation
Sep 29, 2026
Merged

Justice989810 merged 3 commits into
Justice989810:mainfrom
Cornelius128:fix/issue-79-export-account-validation

Conversation

@Cornelius128

Copy link
Copy Markdown
Contributor

Summary

  • Validate Stellar public keys before the export handler queries the database or builds response headers.
  • Return a consistent HTTP 400 JSON error for malformed account IDs.
  • Document the response and add local HTTP tests for valid and invalid keys.

Verification

  • npm run test:account-validation passes.
  • npx tsc --noEmit passes.

Fixes #79

@Justice989810
Justice989810 merged commit 29babfb into Justice989810:main Sep 29, 2026
1 check failed
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.

Sanitize account identifiers used in export response filenames

2 participants