Skip to content

Commit e4f4b26

Browse files
committed
Renamed to config dumper
1 parent e0f57d9 commit e4f4b26

5 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/lightspeed_stack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from log import get_logger, setup_logging
1515
from runners.quota_scheduler import start_quota_scheduler
1616
from runners.uvicorn import start_uvicorn
17-
from utils import models_dumper, schema_dumper
17+
from utils import config_dumper, models_dumper
1818

1919
setup_logging()
2020
logger = get_logger(__name__)
@@ -195,7 +195,7 @@ def main() -> None:
195195
# into a JSON file that is compatible with OpenAPI schema specification
196196
if args.dump_schema:
197197
try:
198-
schema_dumper.dump_schema("schema.json")
198+
config_dumper.dump_schema("schema.json")
199199
logger.info("Configuration schema dumped to schema.json")
200200
except Exception as e:
201201
logger.error("Failed to dump configuration schema: %s", e)
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""Function to dump the configuration schema into OpenAPI-compatible format."""
22

3-
import json
4-
53
from models.config import Configuration
64
from utils.openapi_schema_dumper import dump_openapi_schema
75

src/utils/models_dumper.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""Function to dump the schema of all data models into OpenAPI-compatible format."""
22

3-
import json
4-
53
import models.compaction as models_compaction
64
from utils.openapi_schema_dumper import dump_openapi_schema
75

src/utils/openapi_schema_dumper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
"""Utility function to dump schema with list of models into OpenAPI-compatible JSON format."""
2+
13
import json
24

35
from pydantic.json_schema import models_json_schema
6+
47
from utils.json_schema_updater import recursive_update
58

69

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
"""Unit tests for utils/schema_dumper module."""
1+
"""Unit tests for utils/config_dumper module."""
22

33
from json import load
44
from pathlib import Path
55

6-
from utils.schema_dumper import dump_schema
6+
from utils.config_dumper import dump_schema
77

88

99
def test_dump_schema(tmpdir: Path) -> None:

0 commit comments

Comments
 (0)