Skip to content

Commit df9a5b3

Browse files
committed
fix(users): allow 'update' API without required email/name/username rewrites
Signed-off-by: Adrian DC <radian.dc@gmail.com>
1 parent 397cf39 commit df9a5b3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gitlab/v4/objects/users.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,10 @@ class UserManager(CRUDMixin[User]):
440440
)
441441
)
442442
_update_attrs = RequiredOptional(
443-
required=("email", "username", "name"),
444443
optional=(
444+
"email",
445+
"username",
446+
"name",
445447
"password",
446448
"skype",
447449
"linkedin",
@@ -462,7 +464,7 @@ class UserManager(CRUDMixin[User]):
462464
"private_profile",
463465
"color_scheme_id",
464466
"theme_id",
465-
),
467+
)
466468
)
467469
_types = {"confirm": types.LowercaseStringAttribute, "avatar": types.ImageAttribute}
468470

0 commit comments

Comments
 (0)