Skip to content

Commit ecd1609

Browse files
authored
Merge pull request lightspeed-core#383 from tisnik/lcore-433-ability-to-generate-openapi-documentation
LCORE-433: ability to generate OpenAPI documentation
2 parents 0976655 + 79051c7 commit ecd1609

4 files changed

Lines changed: 21 additions & 0 deletions

File tree

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ format: ## Format the code into unified format
3737
schema: ## Generate OpenAPI schema file
3838
uv run scripts/generate_openapi_schema.py docs/openapi.json
3939

40+
openapi-doc: docs/openapi.json ## Generate OpenAPI documentation
41+
openapi-to-markdown --input_file docs/openapi.json --output_file docs/output.md
42+
4043
# TODO uv migration
4144
requirements.txt: pyproject.toml pdm.lock ## Generate requirements.txt file containing hashes for all non-devel packages
4245
pdm export --prod --format requirements --output requirements.txt --no-extras --without evaluation

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ check-types Checks type hints in sources
261261
security-check Check the project for security issues
262262
format Format the code into unified format
263263
schema Generate OpenAPI schema file
264+
openapi-doc Generate OpenAPI documentation
264265
requirements.txt Generate requirements.txt file containing hashes for all non-devel packages
265266
shellcheck Run shellcheck
266267
verify Run all linters

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ dev = [
7676
"types-cachetools>=6.1.0.20250717",
7777
"build>=1.2.2.post1",
7878
"twine>=6.1.0",
79+
"openapi-to-md>=0.1.0b2",
7980
]
8081
llslibdev = [
8182
"fastapi>=0.115.12",

uv.lock

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)