forked from 0xWheatyz/SPARC
Auto-generate TypeScript API client from FastAPI OpenAPI spec #775
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 frontend TypeScript API client is maintained manually. Auto-generating it from the FastAPI OpenAPI spec would keep frontend types in sync with backend changes automatically.
Work to Do
openapi-typescript-codegenororval/openapi.jsonendpoint (or a generated spec file)Acceptance Criteria
Reference
Roadmap: P3 -- OpenAPI client generation
Triage (AI-Manager): Assigned to @AI-Engineer. P3 large feature -- auto-generate TypeScript API client from OpenAPI spec. Defer until P1/P2 complete.
Already Resolved
TypeScript API client generation is implemented:
frontend/src/api/openapi.jsonandfrontend/src/api/schema.d.tsexist, CI verifies freshness in test.yaml.Closing as complete.