From a4d8bc841b7125bc022de2f8b5eba4bec78854bc Mon Sep 17 00:00:00 2001 From: Kerry Gallagher Date: Wed, 19 Feb 2020 09:02:26 +0000 Subject: [PATCH] Add enabled key schema validation (#57935) --- x-pack/plugins/infra/server/plugin.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugins/infra/server/plugin.ts b/x-pack/plugins/infra/server/plugin.ts index ac45321e870e6..bcdbccf6f2294 100644 --- a/x-pack/plugins/infra/server/plugin.ts +++ b/x-pack/plugins/infra/server/plugin.ts @@ -30,6 +30,7 @@ import { InfraStaticSourceConfiguration } from './lib/sources/types'; export const config = { schema: schema.object({ + enabled: schema.boolean({ defaultValue: true }), query: schema.object({ partitionSize: schema.number({ defaultValue: 75 }), partitionFactor: schema.number({ defaultValue: 1.2 }),