Skip to content

Commit

Permalink
refactor(webhook-whitelisting): Removed unneeded schema config (#44974)
Browse files Browse the repository at this point in the history
Removed an unnecessary Actions schema configuration
  • Loading branch information
gmmorris authored Sep 6, 2019
1 parent 6d1be8e commit 5d8b8fe
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions x-pack/legacy/plugins/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5d8b8fe

Please sign in to comment.