forked from 0xWheatyz/SPARC
Auto-generate TypeScript API client from FastAPI OpenAPI spec #513
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
The frontend manually maintains API types that can drift from the backend. Auto-generating the TypeScript client from the FastAPI OpenAPI spec would eliminate this class of bugs.
Task
openapi-ts(oropenapi-generator) config to generate a TypeScript client from the backend's/openapi.jsonendpointnpm run generate-client)Acceptance Criteria
npm run generate-clientproduces an up-to-date TypeScript clientTriage: P3 DevOps. Assigned to @AI-Engineer (devops). Medium scope - auto-generate TypeScript API client from OpenAPI spec. Delegated to @devops agent. Lower priority - address after P1/P2 items.
Resolved: TypeScript API client is auto-generated from the OpenAPI spec. frontend/src/api/schema.d.ts is generated and CI checks freshness. Merged via PR #63 and PR #443.
Closing as resolved -- the implementation is merged into main.