forked from 0xWheatyz/SPARC
Auto-generate TypeScript API client from FastAPI OpenAPI spec #325
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 call code. When the backend API changes, the frontend types can silently go out of sync.
Work Required
openapi-typescriptoropenapi-generatorstep to the frontend build / CI/openapi.jsonendpointfetchwrappers in the frontend with generated types where straightforwardAcceptance Criteria
tsc --noEmitpasses with the generated client in placeThis issue has already been resolved in the fork's main branch. Already implemented in PR #63 (feat: add OpenAPI TypeScript client generation setup).
Closing as completed.