Skip to content

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

Closed
@prochnowc

Description

@prochnowc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions