diff --git a/output/schema/schema.json b/output/schema/schema.json index 78ddd60da9..5f6ad1f06c 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -186602,6 +186602,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", @@ -186616,7 +186629,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 29eb8a45be..5be8e9c00e 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -1407,9 +1407,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 c9a24fced6..62b9f7f5f7 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -17747,6 +17747,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