Skip to content

Commit

Permalink
fix: missing validator
Browse files Browse the repository at this point in the history
  • Loading branch information
litsynp committed Feb 3, 2024
1 parent 38e2bc3 commit 0000f98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/domain/user/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ type UserStatusView struct {
}

type UpdateUserRequest struct {
Nickname string `json:"nickname"`
ProfileImageID *int `json:"profileImageId"`
Nickname string `json:"nickname" validate:"required"`
ProfileImageID *int `json:"profileImageId" validate:"omitempty"`
}

type UpdateUserView struct {
Expand Down

0 comments on commit 0000f98

Please sign in to comment.