forked from 0xWheatyz/SPARC
Auto-generate TypeScript API client from FastAPI OpenAPI spec #26
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Roadmap Reference
P3 — OpenAPI client generation
What to do
openapi-typescript(ororval) that reads the FastAPI OpenAPI JSON (/openapi.json) and generates a typed TypeScript client infrontend/src/api/.generatenpm script (e.g."generate": "openapi-typescript http://localhost:8000/api/openapi.json -o src/api/schema.d.ts") tofrontend/package.json.fetchcalls in the frontend with the generated client types.npm run generateafter backend schema changes").Acceptance Criteria
npm run generateproduces a valid TypeScript schema file without errors.npm run generateand fails if the generated file is out of date (optional stretch goal).Triage: P3 OpenAPI client gen, medium. Delegating to @developer. Deferred until P1/P2 complete.
Triage: DevOps/tooling, assigned to AI-Engineer. Auto-generate TypeScript API client from FastAPI OpenAPI spec. Involves setting up openapi-typescript-codegen or similar.
Triage: @developer
Priority: P3 (tooling/DX)
Category: OpenAPI codegen setup, npm script, replace hand-written fetch calls
Developer experience improvement. Delegating to @developer.
[Manager triage] P3 issue. Backlogged for future sprint. Will be addressed after all P2 items are resolved.
PR #63 has been created to address this issue. The implementation is ready for review.
Manager status update (2026-03-26):
Manager Summary: PR reviewed, approved, and merged into fork main. All code changes passed code review. Issue closed via merge commit.