adds dive decorator to validate all forwarders under scheduler forwarders list
@@ -53,7 +53,7 @@ type Scheduler struct {
PortRange *PortRange
CreatedAt time.Time
MaxSurge string `validate:"required,max_surge"`
- Forwarders []*forwarder.Forwarder
+ Forwarders []*forwarder.Forwarder `validate:"dive"`
}
func NewScheduler(name string, game string, state string, maxSurge string, spec game_room.Spec, portRange *PortRange, forwarders []*forwarder.Forwarder) (*Scheduler, error) {
