Add comments on ValidUpdate for future considerations
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>pull/2099/head
parent
1b250ebfa9
commit
a122d5537c
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue