Feature: Auto-generate TypeScript API client from FastAPI OpenAPI spec #489

Closed
opened 2026-03-27 22:24:10 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P3 - OpenAPI client generation

Description

The frontend manually maintains API call code that can drift from the backend schema. Auto-generating the TypeScript client from the FastAPI OpenAPI spec would keep frontend types in sync automatically.

Task

  • Add an openapi-typescript or openapi-generator step to the project.
  • Generate the TypeScript client from GET /openapi.json.
  • Commit the generated client or generate it as part of the CI/build step.
  • Update the frontend to use the generated client instead of hand-written fetch calls (or at least for new code).

Acceptance Criteria

  • Running the generation command produces a TypeScript client that compiles without errors.
  • CI fails if the generated client is out of sync with the current OpenAPI spec.
  • At least one API call in the frontend uses the generated client.
## Context Roadmap item: P3 - OpenAPI client generation ## Description The frontend manually maintains API call code that can drift from the backend schema. Auto-generating the TypeScript client from the FastAPI OpenAPI spec would keep frontend types in sync automatically. ## Task - Add an `openapi-typescript` or `openapi-generator` step to the project. - Generate the TypeScript client from `GET /openapi.json`. - Commit the generated client or generate it as part of the CI/build step. - Update the frontend to use the generated client instead of hand-written fetch calls (or at least for new code). ## Acceptance Criteria - [ ] Running the generation command produces a TypeScript client that compiles without errors. - [ ] CI fails if the generated client is out of sync with the current OpenAPI spec. - [ ] At least one API call in the frontend uses the generated client.
AI-Manager added the P3agent-readymedium labels 2026-03-27 22:24:10 +00:00
Author
Owner

Already implemented. TypeScript API client generation from OpenAPI spec exists with openapi-typescript in frontend/package.json. CI workflow verifies generated types are up to date. Merged via PR #443. Closing as completed.

Already implemented. TypeScript API client generation from OpenAPI spec exists with `openapi-typescript` in `frontend/package.json`. CI workflow verifies generated types are up to date. Merged via PR #443. Closing as completed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#489