This directory contains generated backend API documentation. Backend HTTP DTOs and Swagger annotations are the source of truth.
The Swagger files and TypeScript contract are one generated unit. Never edit any of the generated files manually.
After changing a route, HTTP DTO, JSON or validation tag, response document, or Swagger annotation, regenerate from the repository root:
pnpm api:generateThe backend shortcut invokes the same workspace pipeline:
cd backend
make swaggerCheck for drift without changing files:
pnpm api:checkTransport requiredness, optionality, and nullability must be fixed in the backend DTO. Frontend code consumes the generated contract and must not compensate for an incorrect Swagger schema.