Skip to content

Add make docs to render OpenAPI contracts as Swagger#601

Merged
marcvergees merged 1 commit into
fireform-core:developmentfrom
chetanr25:mk-cmd-swaggers
Jul 1, 2026
Merged

Add make docs to render OpenAPI contracts as Swagger#601
marcvergees merged 1 commit into
fireform-core:developmentfrom
chetanr25:mk-cmd-swaggers

Conversation

@chetanr25

Copy link
Copy Markdown
Collaborator

Add make docs to view the contracts as Swagger

Closes the issue about viewing the OpenAPI contracts as Swagger. #599

Why

The contract sits in contracts/ as several files tied together by references. There was no quick way to see it as a Swagger page while working on it. Reading raw YAML is slow, and the backend /docs shows what the code serves, not what the contract files say.

What this adds

A make docs command. It serves the contract as a Swagger page at http://localhost:8088 and opens it in the browser.

It uses swagger-ui-watcher, run through npx so there is nothing to install. The tool resolves the references across the path and schema files into one spec and reloads when any of them change, so you edit a file and the page updates.

Port 8088 is used so it does not clash with the backend on 8000.

How to use

make docs

Then open http://localhost:8088 if it does not open on its own.


Fixes issue: #599

@marcvergees marcvergees merged commit be143e7 into fireform-core:development Jul 1, 2026
1 check passed
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.

2 participants