File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414from log import get_logger , setup_logging
1515from runners .quota_scheduler import start_quota_scheduler
1616from runners .uvicorn import start_uvicorn
17- from utils import models_dumper , schema_dumper
17+ from utils import config_dumper , models_dumper
1818
1919setup_logging ()
2020logger = 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 )
Original file line number Diff line number Diff line change 11"""Function to dump the configuration schema into OpenAPI-compatible format."""
22
3- import json
4-
53from models .config import Configuration
64from utils .openapi_schema_dumper import dump_openapi_schema
75
Original file line number Diff line number Diff line change 11"""Function to dump the schema of all data models into OpenAPI-compatible format."""
22
3- import json
4-
53import models .compaction as models_compaction
64from utils .openapi_schema_dumper import dump_openapi_schema
75
Original file line number Diff line number Diff line change 1+ """Utility function to dump schema with list of models into OpenAPI-compatible JSON format."""
2+
13import json
24
35from pydantic .json_schema import models_json_schema
6+
47from utils .json_schema_updater import recursive_update
58
69
Original file line number Diff line number Diff line change 1- """Unit tests for utils/schema_dumper module."""
1+ """Unit tests for utils/config_dumper module."""
22
33from json import load
44from pathlib import Path
55
6- from utils .schema_dumper import dump_schema
6+ from utils .config_dumper import dump_schema
77
88
99def test_dump_schema (tmpdir : Path ) -> None :
You can’t perform that action at this time.
0 commit comments