From 42b4a4ae741cd5a9a648657026c880291ebc67e5 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Tue, 23 Nov 2021 17:14:18 +0100 Subject: [PATCH] Add missing "defaults" field to IndexState (#1054) --- output/schema/schema.json | 12 ++++++++++++ output/typescript/types.ts | 1 + specification/indices/_types/IndexState.ts | 2 ++ 3 files changed, 15 insertions(+) diff --git a/output/schema/schema.json b/output/schema/schema.json index b297e4e663..9c804e6104 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -91453,6 +91453,18 @@ } } }, + { + "description": "Default settings, included when the request's `include_default` is `true`.", + "name": "defaults", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "IndexSettings", + "namespace": "indices._types" + } + } + }, { "name": "data_stream", "required": false, diff --git a/output/typescript/types.ts b/output/typescript/types.ts index c1e9f701bd..9a04fe44e2 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9040,6 +9040,7 @@ export interface IndicesIndexState { aliases?: Record mappings?: MappingTypeMapping settings?: IndicesIndexSettings + defaults?: IndicesIndexSettings data_stream?: DataStreamName } diff --git a/specification/indices/_types/IndexState.ts b/specification/indices/_types/IndexState.ts index 874ceea5fb..ca1d6d4f41 100644 --- a/specification/indices/_types/IndexState.ts +++ b/specification/indices/_types/IndexState.ts @@ -27,5 +27,7 @@ export class IndexState { aliases?: Dictionary mappings?: TypeMapping settings?: IndexSettings + /** Default settings, included when the request's `include_default` is `true`. */ + defaults?: IndexSettings data_stream?: DataStreamName }