Closed powfyy closed 3 months ago
Hello, thanks for the report! Yes it seems like all properties in ReloadDetails
are optional while we require them, it's an API specification issue, we'll fix it and regenerate the clients.
Hey @l-trotta !
I have the fix for this, as I am experiencing the same issue: https://github.com/elastic/elasticsearch-specification/pull/2577. The wrong object is deserialized on the PutSynonymResponse (ReloadDetails instead of ReloadResult)
Maybe you can have a look and approve if ok. Can this also be backported into earlier versions of the client (e.g. 8.13.4)?
Thanks, George
Java API client version
8.13.2
Java version
17
Elasticsearch Version
8.12.2
Problem description
I get the exception 'node: http://***/, status: 201, [es/synonyms.put_synonym] Failed to decode response ', but the set of synonyms was successfully created. I assume that the structure of the expected response differs from the actual one.
Http Response:
My code:
Exception: