[TE] Remove validation to make recipients backwards compatible
@@ -90,10 +90,6 @@ public class SubscriptionConfigValidator implements ConfigValidator<DetectionAle
*/
@Override
public void validateYaml(Map<String, Object> config) throws IllegalArgumentException {
- // Make sure recipients are configured at the right place
- Preconditions.checkArgument(!config.containsKey(PROP_RECIPIENTS),
- "Recipients should be configured under the EMAIL alertScheme within params");
-
// Subscription group must subscribe to at least one alert
List<String> detectionNames = ConfigUtils.getList(config.get(PROP_DETECTION_NAMES));
Preconditions.checkArgument(!detectionNames.isEmpty(),
