Skip to content

Introduce RequestResponseConverter<T> and make all non-generated JsonConverters public #8669

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

flobernd
Copy link
Member

The RequestResponseConverter<T> allows to (de-)serialize certain properties of user defined document POCO types using the RequestResponse serializer.

This is important in cases where the document must contain Elastic.Clients.Elasticsearch types like e.g. when storing percolated queries.

Additionally makes all handcrafted JsonConverters public (using a .Json sub-namespace of the type). This is a requirement to be compatible with System.Text.Json source-generation (JsonSerializerContext and JsonSerializable attribute).

@flobernd flobernd force-pushed the request-response-serializer branch from eb2c809 to a7a5a18 Compare August 14, 2025 09:17
@flobernd flobernd force-pushed the request-response-serializer branch from 33bf55c to 8495795 Compare August 14, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant