Telegram: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
backend/src/config/swagger.ts component schemas drift from the real models:
StreamEvent.eventType enum lists only [CREATED, TOPPED_UP, WITHDRAWN, CANCELLED, COMPLETED] but the API and DB also emit PAUSED, RESUMED, FEE_COLLECTED (see prisma/schema.prisma and the route enums).
- The
Stream schema omits isPaused, pausedAt, totalPausedDuration, and endTime, all of which exist on the Prisma Stream model and are returned by the API.
Consumers reading the OpenAPI spec get an incomplete contract.
Acceptance criteria
Files to touch
backend/src/config/swagger.ts
Out of scope
- The doc-block annotations on individual routes.
Telegram: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
backend/src/config/swagger.tscomponent schemas drift from the real models:StreamEvent.eventTypeenum lists only[CREATED, TOPPED_UP, WITHDRAWN, CANCELLED, COMPLETED]but the API and DB also emitPAUSED,RESUMED,FEE_COLLECTED(seeprisma/schema.prismaand the route enums).Streamschema omitsisPaused,pausedAt,totalPausedDuration, andendTime, all of which exist on the PrismaStreammodel and are returned by the API.Consumers reading the OpenAPI spec get an incomplete contract.
Acceptance criteria
PAUSED,RESUMED,FEE_COLLECTEDto theStreamEvent.eventTypeenumisPaused,pausedAt,totalPausedDuration,endTimeto theStreamschema/api-docs.jsonreflects the additionsFiles to touch
backend/src/config/swagger.tsOut of scope