aethel icon indicating copy to clipboard operation
aethel copied to clipboard

[TASK 12.53] OpenAPI Validator Middleware Configuration

Open aditsuru opened this issue 1 year ago • 2 comments

📋 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.

aditsuru avatar Oct 17 '25 14:10 aditsuru

hii I'd like to work on this issue for Hacktoberfest 2025. Please assign it to me. Thanks!

SnigdhaSarkar16 avatar Oct 22 '25 09:10 SnigdhaSarkar16

@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.

Image

aditsuru avatar Oct 22 '25 09:10 aditsuru