Skip to content

Commit d01391e

Browse files
Allow handle to be put
1 parent 2ca7e5e commit d01391e

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

api/swagger/swagger-v1.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10381,6 +10381,9 @@ components:
1038110381
type: object
1038210382
description: Request body for updating user profile. All fields are optional.
1038310383
properties:
10384+
handle:
10385+
type: string
10386+
description: User handle. Can only be set if the user does not already have a handle.
1038410387
name:
1038510388
type: string
1038610389
description: Display name

api/v1_users.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ type CreateUserRequest struct {
5252
}
5353

5454
type UpdateUserRequest struct {
55+
Handle *string `json:"handle,omitempty" validate:"omitempty,min=1"`
5556
Name *string `json:"name,omitempty" validate:"omitempty,min=1"`
5657
Bio *string `json:"bio,omitempty" validate:"omitempty,max=256"`
5758
Location *string `json:"location,omitempty"`

0 commit comments

Comments
 (0)