Skip to content

feat: implement middleware, oracle controller, and validation schemas…#844

Merged
GoSTEAN merged 1 commit into
Netwalls:mainfrom
xxvii-xiaxia:feature/task1-middleware-oracle-validation
May 31, 2026
Merged

feat: implement middleware, oracle controller, and validation schemas…#844
GoSTEAN merged 1 commit into
Netwalls:mainfrom
xxvii-xiaxia:feature/task1-middleware-oracle-validation

Conversation

@xxvii-xiaxia
Copy link
Copy Markdown
Contributor

Closes #748 [BACKEND] Implement OracleController::submitOracleResult()
Closes #750 [BACKEND] Implement validate() middleware factory
Closes #749 [BACKEND] Implement requireAdminJwt middleware
Closes #755 [BACKEND] Add Zod validation schemas for all API endpoints

…Netwalls#748 Netwalls#749 Netwalls#750 Netwalls#755)

- Netwalls#749: requireAdminJwt — verifies Bearer JWT, attaches decoded payload to req.admin, 401/403 on failure
- Netwalls#750: validate() factory — unified Zod middleware with target (body/params/query), 422 field-level errors
- Netwalls#748: OracleController::submitOracleResult — HMAC-SHA256 sig verification, Redis rate-limit (1/match_id/60s), 202 async response
- Netwalls#755: validation.schemas.ts — rewrote with correct imports, added all schemas (market filters, resolve, dispute, oracle submission)
@GoSTEAN GoSTEAN merged commit fcfc917 into Netwalls:main May 31, 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

2 participants