Skip to content

Commit

Permalink
Add enabled key schema validation (elastic#57935)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry350 committed Feb 19, 2020
1 parent fae9ed2 commit 46982a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x-pack/plugins/infra/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
Expand Down

0 comments on commit 46982a4

Please sign in to comment.