HRCoder
HRCoder copied to clipboard
HRCoder producing long recursive aliases
I have a complex object graph that has an "event" object that is referenced by a bunch of nested "condition" objects. When I'm retrieving the dictionary of values from HRCoder, I often see long key paths like this one:
"$alias" = "2.destinationStopEvent.beginConditions.1.timeProvider.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent.completionConditions.0.requiredEvent"
I wouldn't mind that so much, but when I go to deserialize the output, it fails, telling me that the object requiredEvent
is actually an HRCoderAliasPlaceholder
instead of my object type.
Am I doing something incorrectly, or is HRCoder just not able to serialize deeply nested objects with relationships to one another?