From bee5d9a2e2650cebebce006451161a7af5fdf14d Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Mon, 24 Feb 2025 17:42:14 +0100 Subject: [PATCH] type already in cause (#3826) (cherry picked from commit 960d65a4bb8ddcd6495b46a4226d78d74fa1773c) --- output/openapi/elasticsearch-openapi.json | 6 +----- .../openapi/elasticsearch-serverless-openapi.json | 6 +----- output/schema/schema-serverless.json | 13 +------------ output/schema/schema.json | 15 ++------------- output/typescript/types.ts | 1 - specification/_types/Errors.ts | 1 - 6 files changed, 5 insertions(+), 37 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index ff73ff0d53..1b591393c0 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -69073,17 +69073,13 @@ }, "status": { "type": "number" - }, - "type": { - "type": "string" } }, "required": [ "cause", "id", "index", - "status", - "type" + "status" ] }, "_types:Retries": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 7dba706023..6cf4303713 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -44800,17 +44800,13 @@ }, "status": { "type": "number" - }, - "type": { - "type": "string" } }, "required": [ "cause", "id", "index", - "status", - "type" + "status" ] }, "_types:Retries": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 2eeb619c6f..057754337b 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -120497,20 +120497,9 @@ "namespace": "_types" } } - }, - { - "name": "type", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } } ], - "specLocation": "_types/Errors.ts#L60-L66" + "specLocation": "_types/Errors.ts#L60-L65" }, { "kind": "interface", diff --git a/output/schema/schema.json b/output/schema/schema.json index 346371193c..082fd244c1 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -45169,20 +45169,9 @@ "namespace": "_types" } } - }, - { - "name": "type", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } } ], - "specLocation": "_types/Errors.ts#L60-L66" + "specLocation": "_types/Errors.ts#L60-L65" }, { "kind": "interface", @@ -52550,7 +52539,7 @@ } } ], - "specLocation": "_types/Errors.ts#L68-L73" + "specLocation": "_types/Errors.ts#L67-L72" }, { "kind": "type_alias", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 9e3f87ebbf..0c6b117a16 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -2196,7 +2196,6 @@ export interface BulkIndexByScrollFailure { id: Id index: IndexName status: integer - type: string } export interface BulkStats { diff --git a/specification/_types/Errors.ts b/specification/_types/Errors.ts index 62ce8eeee6..750a305525 100644 --- a/specification/_types/Errors.ts +++ b/specification/_types/Errors.ts @@ -62,7 +62,6 @@ export class BulkIndexByScrollFailure { id: Id index: IndexName status: integer - type: string } export class TaskFailure {