From 6938c2487e013df67dbab46098afb2bd4ef38a9f Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Thu, 2 Nov 2023 11:52:36 +0400 Subject: [PATCH 1/2] Add delete_dest_index in DeleteTransformRequest (#2295) (cherry picked from commit 2d07ba2a51a5c32caab4a0e87a94799474c8510e) --- output/schema/schema.json | 15 ++++++++++++++- output/schema/validation-errors.json | 4 +--- output/typescript/types.ts | 1 + .../delete_transform/DeleteTransformRequest.ts | 6 ++++++ 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 009e7920fb..43bab19669 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -185443,6 +185443,19 @@ } } }, + { + "description": "If this value is true, the destination index is deleted together with the transform. If false, the destination\nindex will not be deleted", + "name": "delete_dest_index", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -185457,7 +185470,7 @@ } } ], - "specLocation": "transform/delete_transform/DeleteTransformRequest.ts#L24-L51" + "specLocation": "transform/delete_transform/DeleteTransformRequest.ts#L24-L57" }, { "body": { diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 8deec10ece..d030b5d4ca 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -1413,9 +1413,7 @@ "response": [] }, "transform.delete_transform": { - "request": [ - "Request: missing json spec query parameter 'delete_dest_index'" - ], + "request": [], "response": [ "response definition transform.delete_transform:Response / body / instance_of - Non-leaf type cannot be used here: '_types:AcknowledgedResponseBase'" ] diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 49c54acb2b..7b7c8777ec 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -17724,6 +17724,7 @@ export interface TransformTimeSync { export interface TransformDeleteTransformRequest extends RequestBase { transform_id: Id force?: boolean + delete_dest_index?: boolean timeout?: Duration } diff --git a/specification/transform/delete_transform/DeleteTransformRequest.ts b/specification/transform/delete_transform/DeleteTransformRequest.ts index dd242e4df0..898474b29a 100644 --- a/specification/transform/delete_transform/DeleteTransformRequest.ts +++ b/specification/transform/delete_transform/DeleteTransformRequest.ts @@ -42,6 +42,12 @@ export interface Request extends RequestBase { * @server_default false */ force?: boolean + /** + * If this value is true, the destination index is deleted together with the transform. If false, the destination + * index will not be deleted + * @server_default false + */ + delete_dest_index?: boolean /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s From 16d17a37bc78e9e532c2224fb5f1c56aeec0d9d8 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Thu, 2 Nov 2023 11:54:18 +0400 Subject: [PATCH 2/2] Trigger CI