Write apps/backend/docs/contracts-rest-schemas.md — the strict reference companion to the API usage docs: every Zod schema used to validate REST request bodies (schemas/auth.schemas.ts and any others found in middleware/validate.ts call sites) with field-level types, constraints, and default values.
Acceptance criteria:
- Every exported Zod schema used by a route is listed with its full shape (field name, type, optional/required, constraint like
.uuid()/.regex()/.max())
- Cross-referenced by name from each relevant
api-*.md doc rather than duplicating full schema bodies there
- Kept in one file rather than split per-route
Write
apps/backend/docs/contracts-rest-schemas.md— the strict reference companion to the API usage docs: every Zod schema used to validate REST request bodies (schemas/auth.schemas.tsand any others found inmiddleware/validate.tscall sites) with field-level types, constraints, and default values.Acceptance criteria:
.uuid()/.regex()/.max())api-*.mddoc rather than duplicating full schema bodies there