File tree Expand file tree Collapse file tree 5 files changed +11
-1642
lines changed Expand file tree Collapse file tree 5 files changed +11
-1642
lines changed Original file line number Diff line number Diff line change 1+ .DEFAULT_GOAL := all
12
23.PHONY : _check_venv_active
34_check_venv_active :
@@ -6,13 +7,12 @@ _check_venv_active:
67
78
89.PHONY : install
9- install : _check_venv_active
10- @cd ./../../../../services/storage && make install-dev && cd -
10+ install-dev install : _check_venv_active
11+ # installing storage and requirements.txt
12+ @cd ./../../../services/storage && make install-dev && cd -
1113 @uv pip install -r requirements.txt
1214
1315
1416.PHONY : all
15- all : _check_venv_active
16- @for file in * .py; do \
17- python $$ file; \
18- done
17+ all : _check_venv_active install
18+ python openapi.py
Original file line number Diff line number Diff line change 2727from models_library .projects_nodes_io import LocationID , StorageFileID
2828from models_library .users import UserID
2929from pydantic import AnyUrl , ByteSize
30+ from servicelib .fastapi .openapi import create_openapi_specs
3031from servicelib .long_running_tasks ._models import TaskGet , TaskId , TaskStatus
3132from settings_library .s3 import S3Settings
3233from simcore_service_storage ._meta import API_VTAG
3536 FileMetaData ,
3637 SearchFilesQueryParams ,
3738)
39+ from simcore_service_storage .resources import storage_resources
3840
3941TAGS_DATASETS : list [str | Enum ] = ["datasets" ]
4042TAGS_FILES : list [str | Enum ] = ["files" ]
@@ -401,6 +403,7 @@ async def cancel_and_delete_task(task_id: TaskId):
401403
402404
403405if __name__ == "__main__" :
404- from _common import CURRENT_DIR , create_openapi_specs
406+ openapi = create_openapi_specs ( app , drop_fastapi_default_422 = True )
405407
406- create_openapi_specs (app , CURRENT_DIR .parent / "openapi.yaml" )
408+ oas_path = storage_resources .get_path ("api/v0/openapi.yaml" ).resolve ()
409+ print (f"Writing { oas_path } ..." , end = None )
You can’t perform that action at this time.
0 commit comments