From 7fa55d41c2c60d0792e29dbab5d7c23d1422bfe8 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 6db518af93..65facac27b 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -64924,17 +64924,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 4437eecd76..b47390d7ef 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -44168,17 +44168,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 1947e2502f..fa44220607 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -117321,20 +117321,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 dca08201f3..732cbc8adf 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -42838,20 +42838,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", @@ -50038,7 +50027,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 5d5eced2d8..5ce6b39f3d 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -2176,7 +2176,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 ec5dd15215..382e8d8ea8 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 {