ProNotion
04/24/2024, 4:07 PMIOutputExpansionStrategy
mapping strongly typed IPublishedContent
and IPublishedElement
onto my DTO's but I am now running into issues with the following error:
> A possible object cycle was detected. This can either be due to a cycle or if the object depth is larger than the maximum allowed depth of 32. Consider using ReferenceHandler.Preserve on JsonSerializerOptions to support cycles.
This relates to BlockList properties and I'm guessing is an issue caused by the potential for deep/infinite nesting. I can't seem to find a way around it which has lead me to question my current approach to achieve what I am after. Has anyone done anything similar or taken a different approach or can offer some pointers here?ProNotion
04/25/2024, 11:34 AMIOutputExpansionStrategy
I am now doing it in my IApiPropertyRenderer
not that I think it makes much difference.