Lots of fiddling with swagger annotations in user related handlers

This commit is contained in:
Imbus 2024-03-29 18:42:12 +01:00
parent 1385011769
commit c2fa9aa0c1
7 changed files with 67 additions and 56 deletions

View file

@ -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)