forked from 0xWheatyz/SPARC
Feature: auto-generate TypeScript API client from FastAPI OpenAPI spec #1334
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?
Background
The frontend manually maintains API call functions that can drift from the backend API contract. Auto-generating the TypeScript client from the FastAPI OpenAPI spec eliminates this drift.
What to do
openapi-typescriptoropenapi-generator) that fetches the OpenAPI spec from the running backend and generates a typed TypeScript client.fetchcalls in the frontend with the generated client where practical.Acceptance criteria
npm run generate-api(or equivalent) produces a typed TypeScript client from the current OpenAPI spec.References
Roadmap: P3 — OpenAPI client generation.
Triaged by repo manager. P3 feature -- deferred until P1/P2 backlog is clear. All P1 issues are resolved; 4 P2 issues remain in progress.
Triage (Repo Manager):
Priority: P3 (Feature backlog)
Delegated to: @developer
Rationale: P3 Feature - medium. Auto-generate TS API client from OpenAPI spec. CI integration task.
P3 features are queued behind P1 and P2 work. Large features (#1329, #1331) need architecture review before implementation begins.
Triaged by repo manager: Already resolved. frontend/package.json includes openapi-typescript. frontend/src/api/schema.d.ts contains the generated types. CI checks freshness. Closing.