Skip to content

Custom JsonConverter is not honored when serializing script parameters. #5074

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

Closed
prochnowc opened this issue Nov 3, 2020 · 1 comment
Closed

Comments

@prochnowc
Copy link

NEST/Elasticsearch.Net version: 7.9.0

Elasticsearch version: 7.9.1

Description of the problem including expected versus actual behavior:

I have a custom JsonConverter registered to serialize Guid types using the shorter "N" format. To register custom
serializer I followed the guide at https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/custom-serialization.html.

So far my custom converter works fine for document types, but as soon as I start to add complex script parameters which have Guid's inside my custom converter is not used anymore.

Expected behavior

Expected behavior is that a custom JsonConverter is used for document types and script parameters.

@prochnowc prochnowc added the Bug label Nov 3, 2020
@russcam
Copy link
Contributor

russcam commented Nov 3, 2020

Relates: #4971

Closing this issue to consolidate discussion on the existing issue. @prochnowc please feel free to upvote the existing issue and discuss there.

@russcam russcam closed this as completed Nov 3, 2020
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

No branches or pull requests

2 participants