forked from 0xWheatyz/SPARC
Feature: Auto-generate TypeScript API client from FastAPI OpenAPI spec #732
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?
Summary
The frontend manually maintains API call code that can drift from the backend. Auto-generating the TypeScript client from the FastAPI OpenAPI spec would keep types in sync automatically.
What to do
openapi-typescript(oropenapi-generator) step to the frontend build or as a separate codegen script.openapi.json).Acceptance Criteria
Reference
Roadmap: P3 — OpenAPI client generation.
[Repo Manager] Already resolved. openapi-typescript generates schema.d.ts. CI verifies it stays in sync.
Closing as already implemented in the codebase.