Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 755 Bytes

File metadata and controls

20 lines (16 loc) · 755 Bytes

OpenAPI Contract Testing Implementation Summary

✅ Acceptance Criteria Completed

1. Install swagger-jsdoc and swagger-ui-express

2. Add JSDoc OpenAPI annotations to all route handlers

  • ✅ Existing routes already have comprehensive JSDoc annotations
  • ✅ 64+ endpoints documented
  • ✅ Schemas defined in src/docs/schemas/common.schema.ts
  • ✅ Fixed duplicate response code in bookings routes

3. Generate openapi.json at build time

  • ✅ Created scripts/generate-openapi-spec.js
  • ✅ Added npm run generate:spec command
  • ✅ Integrated into build script: npm run build