You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When the app is set to "publish trimed" in csproj, System.Text.Json will disable reflection-based serialization. <PublishTrimmed>true</PublishTrimmed>
In current meilisearch-dotnet source code, it uses System.Text.Json to serialize and deserialize. However, System.Text.Json doesn't support reflection-based serialization in above case. We will have an error message when UpdateDocumentsAsync() is invoked as shown in the screenshot below.
All functions (for example, Index, Task, Document and so on) talk to meilisearch server will fail.
Expected behavior
UpdateDocumentsAsync() should work properly.
Current behavior
UpdateDocumentsAsync() throws InvalidOperationException as shown in the screenshot.
Screenshots or Logs
Environment (please complete the following information):
OS: Windows 11 with .NET 8
Meilisearch version: 1.6
meilisearch-dotnet version: 0.14.7
**One possible solution: **
All functions talk to meilisearch api endpoints should provide new overloaded functions with a new parameter about JsonTypeInfo. So developers can decide what type to serialize and de-serialize as shown in the screenshot.
The text was updated successfully, but these errors were encountered:
Description
When the app is set to "publish trimed" in csproj, System.Text.Json will disable reflection-based serialization.
<PublishTrimmed>true</PublishTrimmed>
In current meilisearch-dotnet source code, it uses System.Text.Json to serialize and deserialize. However, System.Text.Json doesn't support reflection-based serialization in above case. We will have an error message when UpdateDocumentsAsync() is invoked as shown in the screenshot below.
All functions (for example, Index, Task, Document and so on) talk to meilisearch server will fail.
Expected behavior
UpdateDocumentsAsync() should work properly.
Current behavior
UpdateDocumentsAsync() throws InvalidOperationException as shown in the screenshot.
Screenshots or Logs
Environment (please complete the following information):
**One possible solution: **
All functions talk to meilisearch api endpoints should provide new overloaded functions with a new parameter about JsonTypeInfo. So developers can decide what type to serialize and de-serialize as shown in the screenshot.
The text was updated successfully, but these errors were encountered: