From 2c35648ca4c8640dc27412391e6723957d3c5b56 Mon Sep 17 00:00:00 2001 From: philkra Date: Tue, 28 Dec 2021 14:10:38 +0100 Subject: [PATCH 1/5] indices.get --- output/schema/schema.json | 47 +++++++++++++++++++ output/typescript/types.ts | 6 +++ specification/indices/_types/IndexSettings.ts | 8 +++- 3 files changed, 59 insertions(+), 2 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 77d7b7b6ef..02a9184b22 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -98625,6 +98625,17 @@ } } }, + { + "name": "time_series", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "IndexSettingsTimeSeries", + "namespace": "indices._types" + } + } + }, { "aliases": [ "index.analysis" @@ -98806,6 +98817,42 @@ "startLine": 306 } }, + { + "kind": "interface", + "name": { + "name": "IndexSettingsTimeSeries", + "namespace": "indices._types" + }, + "properties": [ + { + "name": "end_time", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "DateString", + "namespace": "_types" + } + } + }, + { + "name": "start_time", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "DateString", + "namespace": "_types" + } + } + } + ], + "specLocation": { + "endLine": 321, + "path": "indices/_types/IndexSettings.ts", + "startLine": 318 + } + }, { "kind": "interface", "name": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index ffa4ea178a..9a088f5ec8 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9141,6 +9141,7 @@ export interface IndicesIndexSettings { priority?: integer | string 'index.priority'?: integer | string top_metrics_max_size?: integer + time_series?: IndicesIndexSettingsTimeSeries analysis?: IndicesIndexSettingsAnalysis 'index.analysis'?: IndicesIndexSettingsAnalysis settings?: IndicesIndexSettings @@ -9158,6 +9159,11 @@ export interface IndicesIndexSettingsLifecycle { name: Name } +export interface IndicesIndexSettingsTimeSeries { + end_time: DateString + start_time: DateString +} + export interface IndicesIndexState { aliases?: Record mappings?: MappingTypeMapping diff --git a/specification/indices/_types/IndexSettings.ts b/specification/indices/_types/IndexSettings.ts index 924774f649..163400062b 100644 --- a/specification/indices/_types/IndexSettings.ts +++ b/specification/indices/_types/IndexSettings.ts @@ -274,9 +274,8 @@ export class IndexSettings { * @aliases index.priority */ priority?: integer | string - top_metrics_max_size?: integer - + time_series?: IndexSettingsTimeSeries /** * @aliases index.analysis */ @@ -314,3 +313,8 @@ export class IndexSettingsAnalysis { normalizer?: Dictionary tokenizer?: Dictionary } + +export class IndexSettingsTimeSeries { + end_time: DateString + start_time: DateString +} From 7743fcbad58dbb2774cd83d7643c258445970af7 Mon Sep 17 00:00:00 2001 From: philkra Date: Tue, 28 Dec 2021 14:28:21 +0100 Subject: [PATCH 2/5] rename targets --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 246601eacd..a9ece26b17 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,14 @@ validate: ## Validate a given endpoint request or response validate-no-cache: ## Validate a given endpoint request or response without local cache @node compiler/run-validations.js --api $(api) --type $(type) --stack-version $(stack-version) --no-cache +generate: ## Generate the output spec + @echo ">> generating the spec .." + @npm run generate-schema --prefix compiler + @npm run start --prefix typescript-generator + +compile: ## Compile the specification + @npm run compile:specification --prefix compiler + license-check: ## Add the license headers to the files @echo ">> checking license headers .." .github/check-license-headers.sh @@ -20,14 +28,6 @@ spec-format-check: ## Check specification formatting rules spec-format-fix: ## Format/fix the specification according to the formatting rules @npm run format:fix --prefix compiler -spec-generate: ## Generate the output spec - @echo ">> generating the spec .." - @npm run generate-schema --prefix compiler - @npm run start --prefix typescript-generator - -spec-compile: ## Compile the specification - @npm run compile:specification --prefix compiler - spec-imports-fix: ## Fix the TypeScript imports @npm run imports:fix --prefix compiler -- --rebuild @@ -44,7 +44,7 @@ clean-dep: ## Clean npm dependencies @rm -rf compiler/node_modules @rm -rf typescript-generator/node_modules -contrib: | spec-generate license-check spec-format-fix ## Pre contribution target +contrib: | generate license-check spec-format-fix ## Pre contribution target help: ## Display help @awk 'BEGIN {FS = ":.*##"; printf "Usage:\n make \033[36m\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) From 57696aba50b969a9caa7326fa0438c87d3b18215 Mon Sep 17 00:00:00 2001 From: philkra Date: Tue, 28 Dec 2021 14:28:37 +0100 Subject: [PATCH 3/5] reorg datastream --- output/schema/schema.json | 444 +++++++++--------- output/typescript/types.ts | 52 +- specification/indices/_types/DataStream.ts | 29 ++ .../indices/_types/DataStreamStatus.ts | 39 -- .../IndicesGetDataStreamResponse.ts | 36 +- .../IndicesPutIndexTemplateRequest.ts | 4 +- .../IndicesSimulateIndexTemplateRequest.ts | 4 +- 7 files changed, 295 insertions(+), 313 deletions(-) delete mode 100644 specification/indices/_types/DataStreamStatus.ts diff --git a/output/schema/schema.json b/output/schema/schema.json index 02a9184b22..20b3a3b4d6 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -97159,6 +97159,218 @@ "name": "DataStream", "namespace": "indices._types" }, + "properties": [ + { + "name": "name", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "DataStreamName", + "namespace": "_types" + } + } + }, + { + "name": "timestamp_field", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "DataStreamTimestampField", + "namespace": "indices._types" + } + } + }, + { + "name": "indices", + "required": true, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "DataStreamIndex", + "namespace": "indices._types" + } + } + } + }, + { + "name": "generation", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "template", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "Name", + "namespace": "_types" + } + } + }, + { + "name": "hidden", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "internal" + } + } + }, + { + "name": "replicated", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "internal" + } + } + }, + { + "name": "system", + "required": false, + "since": "7.10.0", + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "internal" + } + } + }, + { + "name": "status", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "HealthStatus", + "namespace": "_types" + } + } + }, + { + "name": "ilm_policy", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Name", + "namespace": "_types" + } + } + }, + { + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-meta-field.html", + "name": "_meta", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Metadata", + "namespace": "_types" + } + } + }, + { + "name": "allow_custom_routing", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "internal" + } + } + } + ], + "specLocation": { + "endLine": 38, + "path": "indices/_types/DataStream.ts", + "startLine": 23 + } + }, + { + "kind": "interface", + "name": { + "name": "DataStreamIndex", + "namespace": "indices._types" + }, + "properties": [ + { + "name": "index_name", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + } + }, + { + "name": "index_uuid", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "Uuid", + "namespace": "_types" + } + } + } + ], + "specLocation": { + "endLine": 47, + "path": "indices/_types/DataStream.ts", + "startLine": 44 + } + }, + { + "kind": "interface", + "name": { + "name": "DataStreamTimestampField", + "namespace": "indices._types" + }, + "properties": [ + { + "name": "name", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "Field", + "namespace": "_types" + } + } + } + ], + "specLocation": { + "endLine": 42, + "path": "indices/_types/DataStream.ts", + "startLine": 40 + } + }, + { + "kind": "interface", + "name": { + "name": "DataStreamVisibility", + "namespace": "indices._types" + }, "properties": [ { "name": "hidden", @@ -97173,9 +97385,9 @@ } ], "specLocation": { - "endLine": 22, + "endLine": 51, "path": "indices/_types/DataStream.ts", - "startLine": 20 + "startLine": 49 } }, { @@ -97243,9 +97455,9 @@ "namespace": "indices._types" }, "specLocation": { - "endLine": 299, + "endLine": 298, "path": "indices/_types/IndexSettings.ts", - "startLine": 295 + "startLine": 294 } }, { @@ -97696,9 +97908,9 @@ } ], "specLocation": { - "endLine": 293, + "endLine": 292, "path": "indices/_types/IndexSettings.ts", - "startLine": 287 + "startLine": 286 } }, { @@ -98663,7 +98875,7 @@ } ], "specLocation": { - "endLine": 285, + "endLine": 284, "path": "indices/_types/IndexSettings.ts", "startLine": 37 } @@ -98787,9 +98999,9 @@ } ], "specLocation": { - "endLine": 316, + "endLine": 315, "path": "indices/_types/IndexSettings.ts", - "startLine": 310 + "startLine": 309 } }, { @@ -98812,9 +99024,9 @@ } ], "specLocation": { - "endLine": 308, + "endLine": 307, "path": "indices/_types/IndexSettings.ts", - "startLine": 306 + "startLine": 305 } }, { @@ -98848,9 +99060,9 @@ } ], "specLocation": { - "endLine": 321, + "endLine": 320, "path": "indices/_types/IndexSettings.ts", - "startLine": 318 + "startLine": 317 } }, { @@ -98965,9 +99177,9 @@ } ], "specLocation": { - "endLine": 304, + "endLine": 303, "path": "indices/_types/IndexSettings.ts", - "startLine": 301 + "startLine": 300 } }, { @@ -102731,196 +102943,6 @@ "startLine": 25 } }, - { - "kind": "interface", - "name": { - "name": "IndicesGetDataStreamItem", - "namespace": "indices.get_data_stream" - }, - "properties": [ - { - "name": "name", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "DataStreamName", - "namespace": "_types" - } - } - }, - { - "name": "timestamp_field", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "IndicesGetDataStreamItemTimestampField", - "namespace": "indices.get_data_stream" - } - } - }, - { - "name": "indices", - "required": true, - "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "IndicesGetDataStreamItemIndex", - "namespace": "indices.get_data_stream" - } - } - } - }, - { - "name": "generation", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "integer", - "namespace": "_types" - } - } - }, - { - "name": "template", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "Name", - "namespace": "_types" - } - } - }, - { - "name": "hidden", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "internal" - } - } - }, - { - "name": "system", - "required": false, - "since": "7.10.0", - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "internal" - } - } - }, - { - "name": "status", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "HealthStatus", - "namespace": "_types" - } - } - }, - { - "name": "ilm_policy", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Name", - "namespace": "_types" - } - } - }, - { - "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-meta-field.html", - "name": "_meta", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Metadata", - "namespace": "_types" - } - } - } - ], - "specLocation": { - "endLine": 48, - "path": "indices/get_data_stream/IndicesGetDataStreamResponse.ts", - "startLine": 35 - } - }, - { - "kind": "interface", - "name": { - "name": "IndicesGetDataStreamItemIndex", - "namespace": "indices.get_data_stream" - }, - "properties": [ - { - "name": "index_name", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "IndexName", - "namespace": "_types" - } - } - }, - { - "name": "index_uuid", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "Uuid", - "namespace": "_types" - } - } - } - ], - "specLocation": { - "endLine": 57, - "path": "indices/get_data_stream/IndicesGetDataStreamResponse.ts", - "startLine": 54 - } - }, - { - "kind": "interface", - "name": { - "name": "IndicesGetDataStreamItemTimestampField", - "namespace": "indices.get_data_stream" - }, - "properties": [ - { - "name": "name", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "Field", - "namespace": "_types" - } - } - } - ], - "specLocation": { - "endLine": 52, - "path": "indices/get_data_stream/IndicesGetDataStreamResponse.ts", - "startLine": 50 - } - }, { "attachedBehaviors": [ "CommonQueryParameters" @@ -102986,8 +103008,8 @@ "value": { "kind": "instance_of", "type": { - "name": "IndicesGetDataStreamItem", - "namespace": "indices.get_data_stream" + "name": "DataStream", + "namespace": "indices._types" } } } @@ -103000,9 +103022,9 @@ "namespace": "indices.get_data_stream" }, "specLocation": { - "endLine": 33, + "endLine": 24, "path": "indices/get_data_stream/IndicesGetDataStreamResponse.ts", - "startLine": 31 + "startLine": 22 } }, { @@ -104515,7 +104537,7 @@ "type": { "kind": "instance_of", "type": { - "name": "DataStream", + "name": "DataStreamVisibility", "namespace": "indices._types" } } @@ -108293,7 +108315,7 @@ "type": { "kind": "instance_of", "type": { - "name": "DataStream", + "name": "DataStreamVisibility", "namespace": "indices._types" } } diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 9a088f5ec8..a632216aba 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -8969,6 +8969,30 @@ export interface IndicesAliasDefinition { } export interface IndicesDataStream { + name: DataStreamName + timestamp_field: IndicesDataStreamTimestampField + indices: IndicesDataStreamIndex[] + generation: integer + template: Name + hidden: boolean + replicated?: boolean + system?: boolean + status: HealthStatus + ilm_policy?: Name + _meta?: Metadata + allow_custom_routing?: boolean +} + +export interface IndicesDataStreamIndex { + index_name: IndexName + index_uuid: Uuid +} + +export interface IndicesDataStreamTimestampField { + name: Field +} + +export interface IndicesDataStreamVisibility { hidden?: boolean } @@ -9554,35 +9578,13 @@ export interface IndicesGetAliasRequest extends RequestBase { export interface IndicesGetAliasResponse extends DictionaryResponseBase { } -export interface IndicesGetDataStreamIndicesGetDataStreamItem { - name: DataStreamName - timestamp_field: IndicesGetDataStreamIndicesGetDataStreamItemTimestampField - indices: IndicesGetDataStreamIndicesGetDataStreamItemIndex[] - generation: integer - template: Name - hidden: boolean - system?: boolean - status: HealthStatus - ilm_policy?: Name - _meta?: Metadata -} - -export interface IndicesGetDataStreamIndicesGetDataStreamItemIndex { - index_name: IndexName - index_uuid: Uuid -} - -export interface IndicesGetDataStreamIndicesGetDataStreamItemTimestampField { - name: Field -} - export interface IndicesGetDataStreamRequest extends RequestBase { name?: DataStreamNames expand_wildcards?: ExpandWildcards } export interface IndicesGetDataStreamResponse { - data_streams: IndicesGetDataStreamIndicesGetDataStreamItem[] + data_streams: IndicesDataStream[] } export interface IndicesGetFieldMappingRequest extends RequestBase { @@ -9734,7 +9736,7 @@ export interface IndicesPutIndexTemplateRequest extends RequestBase { index_patterns?: Indices composed_of?: Name[] template?: IndicesPutIndexTemplateIndexTemplateMapping - data_stream?: IndicesDataStream + data_stream?: IndicesDataStreamVisibility priority?: integer version?: VersionNumber _meta?: Metadata @@ -10111,7 +10113,7 @@ export interface IndicesSimulateIndexTemplateRequest extends RequestBase { index_patterns?: Indices composed_of?: Name[] template?: IndicesPutIndexTemplateIndexTemplateMapping - data_stream?: IndicesDataStream + data_stream?: IndicesDataStreamVisibility priority?: integer version?: VersionNumber _meta?: Metadata diff --git a/specification/indices/_types/DataStream.ts b/specification/indices/_types/DataStream.ts index 17387dcc68..36d436f4ac 100644 --- a/specification/indices/_types/DataStream.ts +++ b/specification/indices/_types/DataStream.ts @@ -17,6 +17,35 @@ * under the License. */ +import { DataStreamName, Field, HealthStatus, IndexName, Metadata, Name, Uuid } from "@_types/common" +import { integer } from "@_types/Numeric" + export class DataStream { + name: DataStreamName + timestamp_field: DataStreamTimestampField + indices: DataStreamIndex[] + generation: integer + template: Name + hidden: boolean + replicated?: boolean + /** @since 7.10.0 */ + system?: boolean + status: HealthStatus + ilm_policy?: Name + /** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-meta-field.html */ + _meta?: Metadata + allow_custom_routing?: boolean +} + +export class DataStreamTimestampField { + name: Field +} + +export class DataStreamIndex { + index_name: IndexName + index_uuid: Uuid +} + +export class DataStreamVisibility { hidden?: boolean } diff --git a/specification/indices/_types/DataStreamStatus.ts b/specification/indices/_types/DataStreamStatus.ts deleted file mode 100644 index fd0c655d44..0000000000 --- a/specification/indices/_types/DataStreamStatus.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html#cluster-health-api-response-body - */ -export enum DataStreamHealthStatus { - /** - * All shards are assigned. - * @aliases GREEN - */ - green, - /** - * All primary shards are assigned, but one or more replica shards are unassigned. - * @aliases YELLOW - */ - yellow, - /** - * One or more primary shards are unassigned, so some data is unavailable. - * @aliases RED - */ - red -} diff --git a/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts b/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts index 8620b92f49..6d687dde37 100644 --- a/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts +++ b/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts @@ -17,41 +17,9 @@ * under the License. */ -import { - DataStreamName, - Field, - HealthStatus, - IndexName, - Metadata, - Name, - Uuid -} from '@_types/common' -import { integer } from '@_types/Numeric' +import { DataStream } from '@indices/_types/DataStream' export class Response { - body: { data_streams: IndicesGetDataStreamItem[] } + body: { data_streams: DataStream[] } } -export class IndicesGetDataStreamItem { - name: DataStreamName - timestamp_field: IndicesGetDataStreamItemTimestampField - indices: IndicesGetDataStreamItemIndex[] - generation: integer - template: Name - hidden: boolean - /** @since 7.10.0 */ - system?: boolean - status: HealthStatus - ilm_policy?: Name - /** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-meta-field.html */ - _meta?: Metadata -} - -export class IndicesGetDataStreamItemTimestampField { - name: Field -} - -export class IndicesGetDataStreamItemIndex { - index_name: IndexName - index_uuid: Uuid -} diff --git a/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts b/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts index 43e66db862..d77912e36f 100644 --- a/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts +++ b/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { Alias } from '@indices/_types/Alias' -import { DataStream } from '@indices/_types/DataStream' +import { DataStreamVisibility } from '@indices/_types/DataStream' import { IndexSettings } from '@indices/_types/IndexSettings' import { Dictionary } from '@spec_utils/Dictionary' import { RequestBase } from '@_types/Base' @@ -46,7 +46,7 @@ export interface Request extends RequestBase { index_patterns?: Indices composed_of?: Name[] template?: IndexTemplateMapping - data_stream?: DataStream + data_stream?: DataStreamVisibility priority?: integer version?: VersionNumber /** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-meta-field.html */ diff --git a/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts b/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts index 8237705894..be77020cfd 100644 --- a/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts +++ b/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { DataStream } from '@indices/_types/DataStream' +import { DataStreamVisibility } from '@indices/_types/DataStream' import { RequestBase } from '@_types/Base' import { IndexName, @@ -62,7 +62,7 @@ export interface Request extends RequestBase { index_patterns?: Indices composed_of?: Name[] template?: IndexTemplateMapping - data_stream?: DataStream + data_stream?: DataStreamVisibility priority?: integer version?: VersionNumber /** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-meta-field.html */ From 15ea5091a86d1444981a4f761961a9f7e58f6a06 Mon Sep 17 00:00:00 2001 From: philkra Date: Tue, 28 Dec 2021 14:43:02 +0100 Subject: [PATCH 4/5] datastream --- specification/indices/_types/DataStream.ts | 12 ++++++++++-- .../get_data_stream/IndicesGetDataStreamResponse.ts | 1 - 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/specification/indices/_types/DataStream.ts b/specification/indices/_types/DataStream.ts index 36d436f4ac..45b7e5d100 100644 --- a/specification/indices/_types/DataStream.ts +++ b/specification/indices/_types/DataStream.ts @@ -17,8 +17,16 @@ * under the License. */ -import { DataStreamName, Field, HealthStatus, IndexName, Metadata, Name, Uuid } from "@_types/common" -import { integer } from "@_types/Numeric" +import { + DataStreamName, + Field, + HealthStatus, + IndexName, + Metadata, + Name, + Uuid +} from '@_types/common' +import { integer } from '@_types/Numeric' export class DataStream { name: DataStreamName diff --git a/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts b/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts index 6d687dde37..bf40d94dda 100644 --- a/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts +++ b/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts @@ -22,4 +22,3 @@ import { DataStream } from '@indices/_types/DataStream' export class Response { body: { data_streams: DataStream[] } } - From c75c3cb089eb3a0f7cf4c05b5bc84153ec49bc63 Mon Sep 17 00:00:00 2001 From: philkra Date: Tue, 28 Dec 2021 14:47:27 +0100 Subject: [PATCH 5/5] fresh contrib --- output/schema/schema.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 20b3a3b4d6..6461e5a230 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -97299,9 +97299,9 @@ } ], "specLocation": { - "endLine": 38, + "endLine": 46, "path": "indices/_types/DataStream.ts", - "startLine": 23 + "startLine": 31 } }, { @@ -97335,9 +97335,9 @@ } ], "specLocation": { - "endLine": 47, + "endLine": 55, "path": "indices/_types/DataStream.ts", - "startLine": 44 + "startLine": 52 } }, { @@ -97360,9 +97360,9 @@ } ], "specLocation": { - "endLine": 42, + "endLine": 50, "path": "indices/_types/DataStream.ts", - "startLine": 40 + "startLine": 48 } }, { @@ -97385,9 +97385,9 @@ } ], "specLocation": { - "endLine": 51, + "endLine": 59, "path": "indices/_types/DataStream.ts", - "startLine": 49 + "startLine": 57 } }, {