aethel
aethel copied to clipboard
[TASK 12.53] OpenAPI Validator Middleware Configuration
📋 Task Description
Configure and integrate the express-openapi-validator middleware to enforce the API contract.
🎯 Deliverables
Files to create/modify:
src/index.ts
📚 Reference Documentation
Refer to 00-Core-Architecture-and-Setup.md - Section 6 (Middleware Execution Order)
✅ Acceptance Criteria
- [ ] Middleware is installed and configured with the path to the OpenAPI spec file
- [ ] It is registered in the correct order in the Express app (after body parsers, before routes)
- [ ] Validation errors are correctly passed to the global error handler
⚠️ Important Guidelines
- Read CONTRIBUTING.md before starting
- PR must address only this issue - multi-issue PRs will be rejected
- Implement only what is specified - do not make assumptions or add extra features
- Follow the exact patterns and structure defined in the reference documentation
💬 Questions?
Ask in the Discord server or comment below before starting work.
hii I'd like to work on this issue for Hacktoberfest 2025. Please assign it to me. Thanks!
@SnigdhaSarkar16 Thanks for showing interest! This issue is scheduled for a later sprint. Please sort the issues from oldest to newest and pick the latest ones according to sprints.