forked from 0xWheatyz/SPARC
Auto-generate TypeScript API client from FastAPI OpenAPI spec #375
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?
Problem
The TypeScript frontend maintains hand-written API call code that must be kept in sync with the FastAPI backend manually. Type drift leads to runtime errors that are not caught at build time.
Work
openapi-typescript(oropenapi-generator) step to the frontend build or aMakefiletarget that:openapi.jsonexported at build time).frontend/src/api/generated/.Acceptance Criteria
Reference
Roadmap item: P3 — OpenAPI client generation.
[Triage] Already implemented in main. frontend/src/api/openapi.json exists with auto-generated TypeScript client setup. Closing as resolved.