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