Finding
ID: API-3 | Severity: π΄ HIGH
No openapi.yaml or swagger.json. Hand-authored docs/api-reference.md only. No auto-generated SDKs, no API gateway compatibility, no request validation middleware from schemas.
Fix Required
- Generate or author
openapi.yaml covering all /v1/ endpoints
- Use
@fastify/swagger to auto-generate from Fastify schemas
- Publish spec to
/v1/openapi.json and in docs/
- Add CI step to validate spec on every PR
Files: src/server.ts, new openapi.yaml, docs/api-reference.md
Acceptance Criteria
GET /v1/openapi.json returns a valid OpenAPI 3.1 document. swagger-cli validate passes in CI.
Milestone
M-E5: API & Integration
Finding
ID: API-3 | Severity: π΄ HIGH
No
openapi.yamlorswagger.json. Hand-authoreddocs/api-reference.mdonly. No auto-generated SDKs, no API gateway compatibility, no request validation middleware from schemas.Fix Required
openapi.yamlcovering all/v1/endpoints@fastify/swaggerto auto-generate from Fastify schemas/v1/openapi.jsonand indocs/Files:
src/server.ts, newopenapi.yaml,docs/api-reference.mdAcceptance Criteria
GET /v1/openapi.jsonreturns a valid OpenAPI 3.1 document.swagger-cli validatepasses in CI.Milestone
M-E5: API & Integration