for i, act := range req.Actions {
actionType, ok := act["type"].(string)
if !ok {
return false, errors.WithDetailf(ErrBadActionType, "no action type provided on action %d", i)
}
for i, act := range req.Actions {
actionType, ok := act["type"].(string)
if !ok {
return false, errors.WithDetailf(ErrBadActionType, "no action type provided on action %d", i)
}