Skip to content

Commit

Permalink
The 'roles' field is mandatory so still send even if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
joelnb committed Feb 19, 2020
1 parent 054d771 commit ad7fecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type UserDocument struct {

Name string `json:"name,omitempty"`
Password string `json:"password,omitempty"`
Roles []string `json:"roles,omitempty"`
Roles []string `json:"roles"`
TheType string `json:"type,omitempty"`
}

Expand Down

0 comments on commit ad7fecf

Please sign in to comment.