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 SystemTextJsonSerializer.SupportsFastPath method #154

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

flobernd
Copy link
Member

@flobernd flobernd commented Jan 31, 2025

The DefaultRequestResponseSerializer implementation in the Elasticsearch client (based on SystemTextJsonSerializer) overrides the Deserialize/Serialize methods to drive special serialization, if the type implements IStreamSerializable. This is done to support e.g. NDJSON request/response bodies.

Fast-path (de-)serialization currently incorrectly bypasses this special handling.

This PR provides a way to selectively disable the fast-path (de-)serialization for specific types.

@flobernd flobernd added enhancement New feature or request v0.5.8 labels Jan 31, 2025
@flobernd flobernd merged commit 36f1d47 into main Feb 3, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v0.5.8
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants