forked from 0xWheatyz/SPARC
Auto-generate TypeScript API client from FastAPI OpenAPI spec #560
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?
Summary
The TypeScript frontend manually maintains API call code that can drift from the FastAPI backend spec. Auto-generating the client from the OpenAPI spec would keep types in sync automatically.
What to do
openapi-typescriptoropenapi-generator-clistep to the frontend build or a separate codegen script./openapi.jsonendpoint.fetchcalls.Acceptance Criteria
Reference
Roadmap item: P3 - OpenAPI client generation
Triage (Repo Manager): Assigned to AI-Engineer as @senior-developer task. P3/large -- requires OpenAPI codegen tooling setup, replacing manual fetch calls, and CI staleness check. Multi-file cross-stack change.
[Repo Manager] This issue is already resolved.
frontend/package.jsoncontainsgenerateandgenerate:localscripts usingopenapi-typescriptto auto-generate TypeScript types from the FastAPI OpenAPI spec. Closing as complete.