From 6faf4ca4899fd0dd0c5e4e2e58ca8bcd26de45d8 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 2473f4eba7..70d1be1c8a 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -69147,17 +69147,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 440e2627a9..60b5565e58 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -44803,17 +44803,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 e8b0760d2c..7c3ba53db2 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -120151,20 +120151,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 9272acdd46..209e752a9d 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -45145,20 +45145,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", @@ -52532,7 +52521,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 8c88af7323..bb5e7e3a80 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -2187,7 +2187,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 {