mirrorcult/SpeedrunDotComAPI

No variant object deserializer

Opened this issue · 0 comments

This means that Moderators can't be embedded into any resources, because its possible types are Dictionary<string, ModeratorType> -or- UserListModel. Other embedded resources are either array-or-object or string-or-object, which have custom JSON converters and work fine. I couldn't figure out a good way to write a custom JSON converter for two-variant objects but it's probably possible.