❔ Json Deserialization using ReferenceHandler.Preserve with record types

Is it possible to preserve reference types when using records? The exception which is raised: Reference metadata is not supported when deserializing constructor parameters. See type 'RecordParent'. The unsupported member type is located on type 'RecordExample'. Path: $.Child.$ref | LineNumber: 3 | BytePositionInLine: 14.' It seems that the metadata used for reference handling ($id, $ref) is not supported for record types, I expect because the only constructor available has parameters? Is there a way in which to resolve this without manually adding default constructors and [JsonConstructor] attributes on all records?
3 Replies
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
SoggyBottomBoy
SoggyBottomBoyOP2y ago
Thanks bot! I'm still after help
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server