1- """ Helper script to automatically generate OAS
1+ """Helper script to automatically generate OAS
22
33This OAS are the source of truth
44"""
1717from models_library .projects_comments import CommentID , ProjectsCommentsAPI
1818from pydantic import NonNegativeInt
1919from simcore_service_webserver ._meta import API_VTAG
20- from simcore_service_webserver .projects ._comments_handlers import (
20+ from simcore_service_webserver .projects ._comments_rest import (
2121 _ProjectCommentsBodyParams ,
2222 _ProjectCommentsPathParams ,
2323 _ProjectCommentsWithCommentPathParams ,
4545)
4646async def create_project_comment (
4747 project_uuid : ProjectID , body : _ProjectCommentsBodyParams
48- ):
49- ...
48+ ): ...
5049
5150
5251assert_handler_signature_against_model (
@@ -61,8 +60,7 @@ async def create_project_comment(
6160)
6261async def list_project_comments (
6362 project_uuid : ProjectID , limit : int = 20 , offset : NonNegativeInt = 0
64- ):
65- ...
63+ ): ...
6664
6765
6866assert_handler_signature_against_model (
@@ -79,8 +77,7 @@ async def update_project_comment(
7977 project_uuid : ProjectID ,
8078 comment_id : CommentID ,
8179 body : _ProjectCommentsBodyParams ,
82- ):
83- ...
80+ ): ...
8481
8582
8683assert_handler_signature_against_model (
@@ -93,8 +90,7 @@ async def update_project_comment(
9390 description = "Delete a specific comment associated with a project." ,
9491 status_code = 204 ,
9592)
96- async def delete_project_comment (project_uuid : ProjectID , comment_id : CommentID ):
97- ...
93+ async def delete_project_comment (project_uuid : ProjectID , comment_id : CommentID ): ...
9894
9995
10096assert_handler_signature_against_model (
@@ -107,8 +103,7 @@ async def delete_project_comment(project_uuid: ProjectID, comment_id: CommentID)
107103 response_model = Envelope [ProjectsCommentsAPI ],
108104 description = "Retrieve a specific comment by its ID within a project." ,
109105)
110- async def get_project_comment (project_uuid : ProjectID , comment_id : CommentID ):
111- ...
106+ async def get_project_comment (project_uuid : ProjectID , comment_id : CommentID ): ...
112107
113108
114109assert_handler_signature_against_model (
0 commit comments