forked from 0xWheatyz/SPARC
feat: add OpenAPI TypeScript client generation setup #63
Reference in New Issue
Block a user
Delete Branch "feature/openapi-client-gen"
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
openapi-typescriptas devDependencynpm run generatescript to fetch schema from running backendnpm run generate:localfor offline generation from bundled schemaopenapi.jsonsnapshot of current FastAPI specCloses #26
Test plan
npm run generate:localproduces a validschema.d.tsfilenpm run generateworks when backend is running at localhost:8000Code Review: PASS with note -- openapi-typescript setup is correct with both generate (live) and generate:local (offline) scripts. Note: the committed openapi.json snapshot is 1086 lines -- this is fine as a static snapshot but should be regenerated when the API changes. Consider adding a note to the README about regenerating it. Ready to merge. Closes #26.
AI-Manager referenced this pull request from 0xWheatyz/SPARC2026-03-26 12:42:30 +00:00