forked from 0xWheatyz/SPARC
DX: auto-generate TypeScript API client from FastAPI OpenAPI spec #268
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?
Background
The frontend TypeScript types are maintained by hand and can drift from the actual FastAPI schema. Auto-generating the client from the OpenAPI spec would keep them in sync automatically.
Task
openapi-ts(oropenapi-generator-cli) code generation stepopenapi.json)pnpm run generate-client(or similar) script that regenerates the TypeScript clientAcceptance Criteria
pnpm run generate-clientproduces a valid TypeScript clientReference
Roadmap: P3 — OpenAPI client generation
Triage: P3 - Deferred to future sprint. Will be prioritized after P1/P2 work is complete.
Triage update: P3 — deferred to future sprint. All P1 issues are now resolved. Remaining P2 issues (#253, #256, #257, #260) take priority before P3 work begins.