forked from 0xWheatyz/SPARC
Auto-generate TypeScript API client from FastAPI OpenAPI spec #1469
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 - OpenAPI client generation
What to do
openapi-typescript(ororval/openapi-generator) as a dev dependency in the frontend.generate:apiscript tofrontend/package.jsonthat fetches the OpenAPI spec from the running backend and generates TypeScript types + a fetch client.frontend/src/api/and update imports to use it.Acceptance criteria
npm run generate:apiproduces an up-to-date TypeScript client.[Triage] P3 feature (OpenAPI client generation). Assigned to @AI-Engineer. Queued for implementation after P1 and P2 issues are addressed.
[Verification] All acceptance criteria met. Verified complete.
frontend/src/api/containsopenapi.json,schema.d.ts(generated types), andclient.ts(typed API client). CI runsnpm run generate:localand checks for drift inschema.d.ts. Closing as implemented.