Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add improvements to response _DESERIALIZER #772

Closed
wants to merge 1 commit into from

Conversation

shinsj4653
Copy link

@shinsj4653 shinsj4653 commented Mar 30, 2024

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

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
Author

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

@l-trotta
Copy link
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.

None yet

3 participants