forked from 0xWheatyz/SPARC
Auto-generate TypeScript API client from FastAPI OpenAPI spec #920
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 types are maintained manually, causing them to drift from the FastAPI backend schema. Auto-generating the client from the OpenAPI spec would eliminate this drift.
What to do
Acceptance criteria
Reference
ROADMAP.md - P3 - OpenAPI client generation
Triage (AI-Manager): Assigned to @AI-Engineer. P3 feature - auto-generate TypeScript API client from OpenAPI. Medium. Route: @senior-developer. Lower priority - work after P1 and P2 items are resolved.
Triage: RESOLVED
This issue has been fully implemented in the fork main branch (merged via PR #63 and #443).
Evidence:
npm run generate:localand checks ifsrc/api/schema.d.tsis stale.All acceptance criteria are met. Recommending closure.