Skip to content

feat(api): add request/response schema validation with problem+json and OpenAPI generation (#998) - #1137

Open
yodakkak wants to merge 1 commit into
Nanle-code:masterfrom
yodakkak:feat/api-schema-validation-problem-json-998
Open

yodakkak wants to merge 1 commit into
Nanle-code:masterfrom
yodakkak:feat/api-schema-validation-problem-json-998

Conversation

@yodakkak

Copy link
Copy Markdown

Closes #998

Summary

  • Added �pi/middleware/schemaValidation.js enforcing declarative request (params, query, �ody) and response schemas, returning RFC 9457 �pplication/problem+json responses on validation failure and generating OpenAPI 3.1 specifications directly from route schemas.
  • Wired route schemas into �pi/routes/accounts.js and �pi/routes/transactions.js.
  • Added unit tests in ests/api/schemaValidation.test.js covering valid, boundary, and malformed payloads plus OpenAPI spec generation.

Payout Wallet (Stellar / USDC): GD3TVG3SLNQMK7VS7772FZPNM5LTH24NR5NSWMURN2CXEJUDA4V2XONU
EVM Wallet: 0x59622Fe8f9b438eF1CD5dB4e91f1230fe6239AC9

…nd OpenAPI generation (Nanle-code#998)

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Oct 16, 2026

Copy link
Copy Markdown

@yodakkak is attempting to deploy a commit to the nanle-code's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

[2026 API] Add schema validation for every API route request and response

1 participant