File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
packages/models-library/src/models_library/api_schemas_webserver Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 3535 ProjectType ,
3636)
3737from ..projects_access import AccessRights , GroupIDStr
38- from ..projects_state import ProjectState
38+ from ..projects_state import ProjectShareState , ProjectState
3939from ..utils ._original_fastapi_encoders import jsonable_encoder
4040from ..utils .common_validators import (
4141 empty_str_to_none_pre_validator ,
@@ -105,6 +105,15 @@ def to_domain_model(self) -> dict[str, Any]:
105105 )
106106
107107
108+ class ProjectShareStateOutputSchema (ProjectShareState , OutputSchema ): ...
109+
110+
111+ class ProjectStateOutputSchema (ProjectState , OutputSchema ):
112+ share_state : Annotated [
113+ ProjectShareStateOutputSchema , Field (description = "The project lock state" )
114+ ]
115+
116+
108117class ProjectGet (OutputSchema ):
109118 uuid : ProjectID
110119
@@ -124,7 +133,7 @@ class ProjectGet(OutputSchema):
124133 # state
125134 creation_date : DateTimeStr
126135 last_change_date : DateTimeStr
127- state : ProjectState | None = None
136+ state : ProjectStateOutputSchema | None = None
128137 trashed_at : datetime | None
129138 trashed_by : Annotated [
130139 GroupID | None , Field (description = "The primary gid of the user who trashed" )
You can’t perform that action at this time.
0 commit comments