Skip to content

feat: generate OpenAPI spec without a running server#420

Open
gunhileb wants to merge 2 commits intomainfrom
feature/generate-openapi-without-server
Open

feat: generate OpenAPI spec without a running server#420
gunhileb wants to merge 2 commits intomainfrom
feature/generate-openapi-without-server

Conversation

@gunhileb
Copy link
Contributor

@gunhileb gunhileb commented Mar 2, 2026

Why is this pull request needed?

This pull request is needed because generating the TypeScript API client currently requires a running API server on localhost:5000.

What does this pull request change?

  • Adds an open-api CLI command to app.py that generates the OpenAPI spec by instantiating the FastAPI app directly in Python — no server required.
  • The pre-commit hook and package.json generate script are updated to use this command (uv run python -m app open-api) instead of fetching the spec via curl from a live server.

Issues related to this change:

Close #394

@gunhileb gunhileb marked this pull request as ready for review March 2, 2026 15:54
@gunhileb gunhileb requested a review from a team as a code owner March 2, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generate TypeScript API client without running API

1 participant