Skip to content

Add improvements to response _DESERIALIZER - #772

Closed
shinsj4653 wants to merge 1 commit into
elastic:mainfrom
shinsj4653:update-deserializer-718
Closed

shinsj4653 wants to merge 1 commit into
elastic:mainfrom
shinsj4653:update-deserializer-718

Conversation

@shinsj4653

@shinsj4653 shinsj4653 commented Mar 30, 2024 •

Copy link
Copy Markdown

This PR adds a number of enhancements to several response classes.

co.elastic.clients.elasticsearch.security:

  • DisableUserResponse
  • EnableUserResponse
  • ChangePasswordResponse

co.elastic.clients.elasticsearch.indices:

  • SimulateIndexTemplateResponse

For the response that returns an empty object, or has a possibility according to the server-side code, _DESERIALIZER should use emptyObject(T) from the JsonpDeserializer.

For more detailed specifications regarding this PR, please refer to #718 (comment).

change deserializer to use emptyObject(T) for responses that return empty objects
@henryptung

Copy link
Copy Markdown

Looks fine to me at a glance, but unfortunately not in a position to test ATM and don't have permissions to make a useful review.

@shinsj4653

Copy link
Copy Markdown
Author

Appreciate for the feedback! I hope to get further comments from this open source administrators.

@l-trotta

Copy link
Copy Markdown
Contributor

Closing this because it was fixed in the code generator

@l-trotta l-trotta closed this May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants