Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions api/swagger/swagger-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10381,6 +10381,9 @@ components:
type: object
description: Request body for updating user profile. All fields are optional.
properties:
handle:
type: string
description: User handle. Can only be set if the user does not already have a handle.
name:
type: string
description: Display name
Expand Down
1 change: 1 addition & 0 deletions api/v1_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ type CreateUserRequest struct {
}

type UpdateUserRequest struct {
Handle *string `json:"handle,omitempty" validate:"omitempty,min=1"`
Name *string `json:"name,omitempty" validate:"omitempty,min=1"`
Bio *string `json:"bio,omitempty" validate:"omitempty,max=256"`
Location *string `json:"location,omitempty"`
Expand Down