diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index cedee4a480..16736bd0df 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -8145,6 +8145,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -8211,6 +8214,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -12630,6 +12636,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -113521,6 +113530,16 @@ }, "style": "form" }, + "index-require_data_stream": { + "in": "query", + "name": "require_data_stream", + "description": "If `true`, the request's actions must target a data stream (existing or to be created).", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "indices.analyze-index": { "in": "path", "name": "index", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index bd2c44e5da..78f7ce768e 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -4149,6 +4149,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -4215,6 +4218,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -6588,6 +6594,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -68569,6 +68578,16 @@ }, "style": "form" }, + "index-require_data_stream": { + "in": "query", + "name": "require_data_stream", + "description": "If `true`, the request's actions must target a data stream (existing or to be created).", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "indices.analyze-index": { "in": "path", "name": "index", diff --git a/output/schema/schema.json b/output/schema/schema.json index ebe0d172c1..ab37cff986 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -31979,9 +31979,22 @@ "namespace": "_builtins" } } + }, + { + "description": "If `true`, the request's actions must target a data stream (existing or to be created).", + "name": "require_data_stream", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "_global/index/IndexRequest.ts#L35-L268" + "specLocation": "_global/index/IndexRequest.ts#L35-L273" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 829c2c8dc3..368e38caf0 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -49,12 +49,6 @@ ], "response": [] }, - "index": { - "request": [ - "Request: missing json spec query parameter 'require_data_stream'" - ], - "response": [] - }, "ingest.get_ip_location_database": { "request": [ "Request: query parameter 'master_timeout' does not exist in the json spec" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index a84fde9660..71ac4b48a7 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -673,6 +673,7 @@ export interface IndexRequest extends RequestBase { version_type?: VersionType wait_for_active_shards?: WaitForActiveShards require_alias?: boolean + require_data_stream?: boolean body?: TDocument } diff --git a/specification/_global/index/IndexRequest.ts b/specification/_global/index/IndexRequest.ts index 644a52e81e..6a4dae61ec 100644 --- a/specification/_global/index/IndexRequest.ts +++ b/specification/_global/index/IndexRequest.ts @@ -259,6 +259,11 @@ export interface Request extends RequestBase { * @server_default false */ require_alias?: boolean + /** + * If `true`, the request's actions must target a data stream (existing or to be created). + * @server_default false + */ + require_data_stream?: boolean } /** @codegen_name document */ /**