forked from 0xWheatyz/SPARC
Auto-generate TypeScript API client from FastAPI OpenAPI spec #398
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?
Problem
The frontend maintains manually written API call wrappers that can drift from the backend OpenAPI spec. Type mismatches go undetected until runtime.
Work
openapi-ts(oropenapi-generator) code generation step that reads the FastAPI-generatedopenapi.jsonand produces a typed TypeScript client.Acceptance Criteria
Reference
Roadmap item: P3 — OpenAPI client generation.
Closing as already implemented. openapi-typescript is in package.json with generate scripts. openapi.json is committed. TypeScript types are auto-generated from the FastAPI spec.