Skip to content

Commit 9f78b81

Browse files
committed
cleanup
1 parent ce873a6 commit 9f78b81

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/models-library/src/models_library/api_schemas_webserver/projects_access_rights.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class ProjectsGroupsBodyParams(InputSchema):
2727

2828
class ProjectShare(InputSchema):
2929
sharee_email: EmailStr
30-
sharer_message: Annotated[str, StringConstraints(max_length=500)]
30+
sharer_message: Annotated[
31+
str, StringConstraints(max_length=500, strip_whitespace=True)
32+
] = ""
3133

3234
# sharing access
3335
read: bool

services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13979,6 +13979,7 @@ components:
1397913979
type: string
1398013980
maxLength: 500
1398113981
title: Sharermessage
13982+
default: ''
1398213983
read:
1398313984
type: boolean
1398413985
title: Read
@@ -13991,7 +13992,6 @@ components:
1399113992
type: object
1399213993
required:
1399313994
- shareeEmail
13994-
- sharerMessage
1399513995
- read
1399613996
- write
1399713997
- delete

0 commit comments

Comments
 (0)