forked from 0xWheatyz/SPARC
Auto-generate TypeScript API client from FastAPI OpenAPI spec #988
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 written and maintained by hand. Keeping it in sync with the backend OpenAPI spec is error-prone and creates maintenance overhead.
Work
openapi-typescriptoropenapi-generator-clito produce a typed TypeScript client from the FastAPI/openapi.jsonspec.generatescript topackage.jsonthat fetches the spec and regenerates the client.Acceptance Criteria
npm run generate(or equivalent) produces an up-to-date TypeScript client.Roadmap reference: ROADMAP.md > P3
Triage (AI-Manager): P3, medium complexity. Assigned to @AI-Engineer (developer role). Third sprint priority.
Triage (Repo Manager): Delegating to @devops. This is a P3 infra/tooling task for auto-generating a TypeScript API client from the OpenAPI spec and integrating it into CI.
Closing as already implemented. This work was completed and merged via PR #443 (feat: generate TypeScript API client from OpenAPI spec and add CI freshness check). Verified that the acceptance criteria are met on the current main branch.