Serialising Lazy-References #134
Bios-Marcel
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Hi, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently there's a hardcoded check that throws an exception if any
Lazyelement is discovered while serializing an object.I am rather unsure as to why that is so. Couldn't the serializer simply initialise the lazy reference and then serialize it?
If there's a technical reason as to why this impossible, I think it'd be nice to document this in a discoverable place. Otherwise it might be nice to delete this guard, or explicitly allow activating this via a setter or so, if there are any downsides worth considering for the user of the serializer.
Beta Was this translation helpful? Give feedback.
All reactions