From d519cf5394f4629fcd58d793a524e151930fb7d6 Mon Sep 17 00:00:00 2001 From: George Ciachir Date: Fri, 24 May 2024 14:38:53 +0300 Subject: [PATCH] deserialize the correct object --- 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 30e4bad992..cdd61fc134 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -194356,7 +194356,7 @@ "type": { "kind": "instance_of", "type": { - "name": "ReloadDetails", + "name": "ReloadResult", "namespace": "indices.reload_search_analyzers" } } @@ -194368,7 +194368,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 e404574c7f..c565b54014 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -18418,7 +18418,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 } }