I am using custom System.Text.Json converters in my dapr application. I set the serialization options to the same value for both dapr client and actors
DaprClient calls work as expected with the custom converters
Expected Behavior
Actor calls should also feature the custom converters
Actual Behavior
Actor calls throw serialization exception
System.Runtime.Serialization.SerializationException: Type 'Yatp.Domain.CardValue+Grid' with data contract name 'CardValue.Grid:http://schemas.datacontract.org/2004/07/Yatp.Domain' is not expected. Add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer.
I believe this is because the dotnet sdk is using the XML DataContractSerializer for Actor to Actor invocation, and the documentation on this is very sparse.
I am using custom System.Text.Json converters in my dapr application. I set the serialization options to the same value for both dapr client and actors
DaprClient calls work as expected with the custom converters
Expected Behavior
Actor calls should also feature the custom converters
Actual Behavior
Actor calls throw serialization exception