From 80811a596117489f7817b4cd2121cd1c86734dcf Mon Sep 17 00:00:00 2001 From: Gidi Morris Date: Fri, 6 Sep 2019 08:51:44 +0100 Subject: [PATCH] refactor(webhook-whitelisting): Removed unneeded schema config --- x-pack/legacy/plugins/actions/index.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/x-pack/legacy/plugins/actions/index.ts b/x-pack/legacy/plugins/actions/index.ts index bb982dd59b5a6..0a9acc13c3ac0 100644 --- a/x-pack/legacy/plugins/actions/index.ts +++ b/x-pack/legacy/plugins/actions/index.ts @@ -27,12 +27,9 @@ export function actions(kibana: any) { return Joi.object() .keys({ enabled: Joi.boolean().default(false), - whitelistedHosts: Joi.alternatives() - .try( - Joi.array() - .items(Joi.string().hostname()) - .sparse(false) - ) + whitelistedHosts: Joi.array() + .items(Joi.string().hostname()) + .sparse(false) .default([]), }) .default();