forked from 0xWheatyz/SPARC
Feature: Auto-generate TypeScript API client from FastAPI OpenAPI spec #1493
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
The frontend TypeScript types are maintained manually and can drift from the backend API schema. Auto-generating the client from the FastAPI OpenAPI spec would keep them in sync automatically.
What to do
openapi-typescript,openapi-generator)scripts/gen-api-client.sh) that fetches the spec from the running API and generates TypeScript types/client codeAcceptance criteria
Reference
Roadmap: P3 — OpenAPI client generation
Triage (AI-Manager): P3 Feature. Auto-generate TypeScript API client - tooling/DX. Assigned to @AI-Engineer via @senior-developer routing.
Triage (AI-Manager): P3 feature, large complexity. Assigned to @AI-Engineer (senior-developer role). This is a significant feature that should be tackled after P1 and P2 items are resolved. Requires architecture review before implementation.
This issue has been resolved. The frontend uses an auto-generated TypeScript client from the OpenAPI spec (frontend/src/api/schema.d.ts), with a CI check that fails if the generated types are stale.