Skip to content

Commit

Permalink
add all optional params to schema definiton
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed Feb 7, 2020
1 parent 9d284b1 commit ec225be
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ export const dataAnalyticsJobConfigSchema = {
source: schema.object({
index: schema.oneOf([schema.string(), schema.arrayOf(schema.string())]),
query: schema.maybe(schema.any()),
_source: schema.maybe(
schema.object({
includes: schema.maybe(schema.arrayOf(schema.maybe(schema.string()))),
excludes: schema.maybe(schema.arrayOf(schema.maybe(schema.string()))),
})
),
}),
allow_lazy_start: schema.maybe(schema.boolean()),
analysis: schema.any(),
analyzed_fields: schema.any(),
model_memory_limit: schema.string(),
Expand Down

0 comments on commit ec225be

Please sign in to comment.