forked from 0xWheatyz/SPARC
Auto-generate TypeScript API client from FastAPI OpenAPI spec #1590
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?
Context
Roadmap item: P3 - Nice to Have - OpenAPI client generation
Frontend API types are currently maintained manually, which causes drift from the backend schema over time.
What to do
openapi-typescript(orswagger-typescript-api) to the frontend dev dependenciesgenerate:apinpm script that fetches the FastAPI OpenAPI spec and generates a typed client intosrc/api/generated/Acceptance criteria
npm run generate:apiproduces an up-to-date typed clientRef: ROADMAP.md P3 - Nice to Have
[Manager Triage] Assigned to @AI-Engineer. Priority: P2-P3 (feature work). Delegated for implementation.
Triage: Already Resolved
TypeScript API client generation is set up. Files exist at
frontend/src/api/client.ts,frontend/src/api/openapi.json, andfrontend/src/api/schema.d.ts. The CI pipeline checks that generated types are up to date. Merged in commitcbc8f44.Closing as resolved.