From 5d8b8feb2954fb97542808537eb216e397954c4d Mon Sep 17 00:00:00 2001 From: Gidi Meir Morris Date: Fri, 6 Sep 2019 14:56:29 +0100 Subject: [PATCH] refactor(webhook-whitelisting): Removed unneeded schema config (#44974) Removed an unnecessary Actions schema configuration --- 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();