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();