Add comments on ValidUpdate for future considerations

Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
pull/2099/head
Michael de Sa 2017-10-10 14:19:28 -07:00 committed by Jared Scheib
parent 1b250ebfa9
commit a122d5537c
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ func (r *userRequest) ValidCreate() error {
return nil
}
// TODO: Provide detailed error message
// TODO: Reconsider what fields should actually be updateable once this is more robust
func (r *userRequest) ValidUpdate() error {
if r.Name == "" && r.Provider == "" && r.Scheme == "" {
return errors.New("No fields to update")