From 36726115fa3eb3724ab259e385eee9bcc0c7397d Mon Sep 17 00:00:00 2001 From: George Ciachir Date: Tue, 28 May 2024 17:29:37 +0300 Subject: [PATCH] deserialize the correct object (#2577) --- output/schema/schema.json | 4 ++-- output/typescript/types.ts | 2 +- specification/synonyms/put_synonym/SynonymsPutResponse.ts | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 96b44dba4d..65f9799d14 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -194550,7 +194550,7 @@ "type": { "kind": "instance_of", "type": { - "name": "ReloadDetails", + "name": "ReloadResult", "namespace": "indices.reload_search_analyzers" } } @@ -194562,7 +194562,7 @@ "name": "Response", "namespace": "synonyms.put_synonym" }, - "specLocation": "synonyms/put_synonym/SynonymsPutResponse.ts#L24-L29" + "specLocation": "synonyms/put_synonym/SynonymsPutResponse.ts#L23-L28" }, { "attachedBehaviors": [ diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 59d1384740..943b7d147d 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -18433,7 +18433,7 @@ export interface SynonymsPutSynonymRequest extends RequestBase { export interface SynonymsPutSynonymResponse { result: Result - reload_analyzers_details: IndicesReloadSearchAnalyzersReloadDetails + reload_analyzers_details: IndicesReloadSearchAnalyzersReloadResult } export interface SynonymsPutSynonymRuleRequest extends RequestBase { diff --git a/specification/synonyms/put_synonym/SynonymsPutResponse.ts b/specification/synonyms/put_synonym/SynonymsPutResponse.ts index 388675a694..d8728f7f1d 100644 --- a/specification/synonyms/put_synonym/SynonymsPutResponse.ts +++ b/specification/synonyms/put_synonym/SynonymsPutResponse.ts @@ -18,12 +18,11 @@ */ import { Result } from '@_types/Result' -import { ReloadDetails } from '@indices/reload_search_analyzers/types' -import { ShardStatistics } from '@_types/Stats' +import { ReloadResult } from '@indices/reload_search_analyzers/types' export class Response { body: { result: Result - reload_analyzers_details: ReloadDetails + reload_analyzers_details: ReloadResult } }