It is rare that people use a cyclic structure to depths of more than 4 or 5, so would it be possible to change the error on cyclic types to instead depth count and "snip" when it reaches some reasonable/configured depth (e.g. 7) rather than throwing away the whole graph?
I made a PR with the idea around depth 7, but I'm not sure how to actually run go app to confirm this is the behaviour we'd want (go run . resulted in the window opening but blank)
I'm working with gRPC, field masks and
google.protobuf.Value
, and the fact that it is cyclic is making Wombat unusable 😞It is rare that people use a cyclic structure to depths of more than 4 or 5, so would it be possible to change the error on cyclic types to instead depth count and "snip" when it reaches some reasonable/configured depth (e.g. 7) rather than throwing away the whole graph?