From ce8b0cf04b14d879fd3c5d7bd24cb3d9c89c9644 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Tue, 23 Nov 2021 17:11:06 +0100 Subject: [PATCH] Add missing "defaults" field to IndexState --- 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 0f09f55d0d..45d4646be2 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -91096,6 +91096,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 194376884e..e2839b5ecc 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9062,6 +9062,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 }