Lots of fiddling with swagger annotations in user related handlers
This commit is contained in:
parent
1385011769
commit
c2fa9aa0c1
7 changed files with 67 additions and 56 deletions
|
@ -18,8 +18,8 @@ func (u *User) ToPublicUser() (*PublicUser, error) {
|
|||
|
||||
// Should be used when registering, for example
|
||||
type NewUser struct {
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
Username string `json:"username" example:"username123"`
|
||||
Password string `json:"password" example:"password123"`
|
||||
}
|
||||
|
||||
// PublicUser represents a user that is safe to send over the API (no password)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue