Open allister-beamable opened 3 months ago
btw- you can also create an announcement via content.
does sending any DTO with an OptionalString work?
the hint is to look at UnitySerializationSettings
Interesting- this is already fixed on the CLI 2.0 / SAM release. But I verified this is broken on 1.19.15
Describe the bug
Reported by a customer:
await Services.Announcements.GetCurrent();
in C#MS code throws a Newtonsoft.Json.JsonSerializationException sayingError converting value "Rewards" to type 'Beamable.Common.Content.OptionalString'. Path 'announcements[2].gift.description'
Similar code works fine in Unity client code, and players are able to claim rewards from Announcements, but things blow up when C#MS code tries to read Announcements with rewards.
To Reproduce Steps to reproduce the behavior:
Services.Announcements.GetCurrent();
Expected behavior
Announcements.GetCurrent()
returns a list of announcement data objects, some of which contain reward descriptions.Actual behavior
An exception is thrown from somewhere inside GetCurrent()
Metadata