Add comments on ValidUpdate for future considerations
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>pull/10616/head
parent
af5d21028c
commit
85dde0cebe
|
@ -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