From f12760384a72b71e47c66972d28af79656a232a4 Mon Sep 17 00:00:00 2001 From: James Gowdy Date: Tue, 11 Aug 2020 09:01:19 +0100 Subject: [PATCH] [ML] Fixing schema for custom rule conditions (#74676) Co-authored-by: Elastic Machine --- .../ml/server/routes/schemas/anomaly_detectors_schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/ml/server/routes/schemas/anomaly_detectors_schema.ts b/x-pack/plugins/ml/server/routes/schemas/anomaly_detectors_schema.ts index 196e17d0984f9..9203c7cf997a6 100644 --- a/x-pack/plugins/ml/server/routes/schemas/anomaly_detectors_schema.ts +++ b/x-pack/plugins/ml/server/routes/schemas/anomaly_detectors_schema.ts @@ -11,7 +11,7 @@ const customRulesSchema = schema.maybe( schema.maybe( schema.object({ actions: schema.arrayOf(schema.string()), - conditions: schema.arrayOf(schema.any()), + conditions: schema.maybe(schema.arrayOf(schema.any())), scope: schema.maybe(schema.any()), }) )