diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index ab22e1eac4..1f1511334a 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": { @@ -12503,6 +12509,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -112163,6 +112172,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 26c1ed3fb3..332de0ea79 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": { @@ -6471,6 +6477,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -67478,6 +67487,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 8adb75255a..ff9848bfb4 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -31498,9 +31498,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 f65c4e3623..27704bff4d 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 */ /**