weichx / cerialize

Easy serialization through ES7/Typescript annotations
MIT License
257 stars 28 forks source link

Circular Reference Handling Improvement #73

Open rightisleft opened 6 years ago

rightisleft commented 6 years ago

I noticed that when there's a circular reference in an entity, it will cause @autoSerializeAs on a child field to fail. However, this is silent. It would be great if it wasn't silent! They just come back as undefined with no feedback.

parish-dont-panic commented 6 years ago

I'm running into this as well. What's more is that it doesn't seem to matter if I tag the nested reference with autoSerialize or not. Deserialization still fails whether I event want that property deserialized or not.