Skip to content

Commit

Permalink
[Index management] Make allowAutoCreate param optional as its not ava…
Browse files Browse the repository at this point in the history
…ilable for legacy templates (elastic#189618)
  • Loading branch information
sabarasaba authored Aug 2, 2024
1 parent efb71fa commit cd55732
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export const templateSchema = schema.object({
version: schema.maybe(schema.number()),
order: schema.maybe(schema.number()),
priority: schema.maybe(schema.number()),
allowAutoCreate: schema.string(),
// Not present for legacy templates
allowAutoCreate: schema.maybe(schema.string()),
template: schema.maybe(
schema.object({
settings: schema.maybe(schema.object({}, { unknowns: 'allow' })),
Expand Down

0 comments on commit cd55732

Please sign in to comment.