resources: Improve composition of Validate API in resources
This now appropriately calls the Base method.
This commit is contained in:
@@ -62,7 +62,7 @@ func (obj *TimerRes) Default() Res {
|
||||
|
||||
// Validate the params that are passed to TimerRes.
|
||||
func (obj *TimerRes) Validate() error {
|
||||
return nil
|
||||
return obj.BaseRes.Validate()
|
||||
}
|
||||
|
||||
// Init runs some startup code for this resource.
|
||||
|
||||
Reference in New Issue
Block a user