Skip to content

Commit 0f9e09a

Browse files
committed
updates OAS
1 parent de333e3 commit 0f9e09a

File tree

2 files changed

+30
-11
lines changed
  • packages/models-library/src/models_library/api_schemas_webserver
  • services/web/server/src/simcore_service_webserver/api/v0

2 files changed

+30
-11
lines changed

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,14 +286,24 @@ class GroupUserAdd(InputSchema):
286286
"""
287287

288288
uid: UserID | None = None
289-
email: LowerCaseEmailStr | None = None
289+
email: Annotated[
290+
LowerCaseEmailStr | None,
291+
Field(
292+
description="Accessible only if the user has opted to share their email in privacy settings"
293+
),
294+
] = None
290295

291296
_check_uid_or_email = model_validator(mode="after")(
292297
create__check_only_one_is_set__root_validator(["uid", "email"])
293298
)
294299

295300
model_config = ConfigDict(
296-
json_schema_extra={"examples": [{"uid": 42}, {"email": "[email protected]"}]}
301+
json_schema_extra={
302+
"examples": [
303+
{"uid": 42},
304+
{"email": "[email protected]"},
305+
]
306+
}
297307
)
298308

299309

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

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9786,6 +9786,8 @@ components:
97869786
format: email
97879787
- type: 'null'
97889788
title: Email
9789+
description: Accessible only if the user has opted to share their email
9790+
in privacy settings
97899791
type: object
97909792
title: GroupUserAdd
97919793
description: "Identify the user with either `email` or `uid` \u2014 only one."
@@ -9797,41 +9799,48 @@ components:
97979799
- type: 'null'
97989800
title: Id
97999801
description: the user id
9802+
userName:
9803+
type: string
9804+
maxLength: 100
9805+
minLength: 1
9806+
title: Username
9807+
gid:
9808+
anyOf:
9809+
- type: string
9810+
- type: 'null'
9811+
title: Gid
9812+
description: the user primary gid
98009813
login:
98019814
anyOf:
98029815
- type: string
98039816
format: email
98049817
- type: 'null'
98059818
title: Login
9806-
description: the user login email
9819+
description: the user's email, if privacy settings allows
98079820
first_name:
98089821
anyOf:
98099822
- type: string
98109823
- type: 'null'
98119824
title: First Name
9812-
description: the user first name
9825+
description: If privacy settings allows
98139826
last_name:
98149827
anyOf:
98159828
- type: string
98169829
- type: 'null'
98179830
title: Last Name
9818-
description: the user last name
9831+
description: If privacy settings allows
98199832
gravatar_id:
98209833
anyOf:
98219834
- type: string
98229835
- type: 'null'
98239836
title: Gravatar Id
98249837
description: the user gravatar id hash
9825-
gid:
9826-
anyOf:
9827-
- type: string
9828-
- type: 'null'
9829-
title: Gid
9830-
description: the user primary gid
9838+
deprecated: true
98319839
accessRights:
98329840
$ref: '#/components/schemas/GroupAccessRights'
98339841
type: object
98349842
required:
9843+
- userName
98359844
- accessRights
98369845
title: GroupUserGet
98379846
example:

0 commit comments

Comments
 (0)