resources: Improve composition of Validate API in resources

This now appropriately calls the Base method.
This commit is contained in:
James Shubin
2017-01-16 19:28:00 -05:00
parent 51c83116a2
commit 2a6df875ec
13 changed files with 31 additions and 11 deletions

View File

@@ -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.