Skip to content

Enum serialisation issue with V7 #861

Closed
@morganleroi

Description

@morganleroi

There is another breaking change about JSON serialization we have seen later: the System.Text.Json serialization is set in the Algolia client to convert enums to string, while previously, they were converted to integers.

Since the Algolia client registers a global converter for doing this, it seems the only ways to adapt is either to set a custom converter on all enum properties of serialized models, or type the enum properties as int and adapt the code fetching them.

Originally posted by @fredericDelaporte in #852 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions