Skip to content

Commit c2f23a2

Browse files
committed
Workaround for nil value.
1 parent ba9214b commit c2f23a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/structs/admin_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type EditUserOption struct {
3232
FullName *string `json:"full_name" binding:"MaxSize(100)"`
3333
Password string `json:"password" binding:"MaxSize(255)"`
3434
MustChangePassword *bool `json:"must_change_password"`
35-
Website *string `json:"website" binding:"ValidUrl;MaxSize(255)"`
35+
Website *string `json:"website" binding:"OmitEmpty;ValidUrl;MaxSize(255)"`
3636
Location *string `json:"location" binding:"MaxSize(50)"`
3737
Description *string `json:"description" binding:"MaxSize(255)"`
3838
Active *bool `json:"active"`

0 commit comments

Comments
 (0)