We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2884713 commit 230f01eCopy full SHA for 230f01e
modules/structs/user.go
@@ -56,6 +56,8 @@ func (u User) MarshalJSON() ([]byte, error) {
56
}{shadow(u), u.UserName})
57
}
58
59
+// UserSettingsOptions represents user settings
60
+// swagger:model
61
type UserSettings struct {
62
FullName string `json:"full_name"`
63
Website string `json:"website"`
@@ -69,6 +71,8 @@ type UserSettings struct {
69
71
HideActivity bool `json:"hide_activity"`
70
72
73
74
+// UserSettingsOptions represents options to change user settings
75
76
type UserSettingsOptions struct {
77
FullName *string `json:"full_name" binding:"MaxSize(100)"`
78
Website *string `json:"website" binding:"OmitEmpty;ValidUrl;MaxSize(255)"`
0 commit comments