Hi! We are using Content Delivery API for a model serialization. We are serializing the entire model and pass it to frontend. That means we have to expand all blocks/references. It was working fine till now. When we set expand="*" API expands only 2 levels deep. We can force API in code to expand all references unfortunately it ends with stack overflow exception because of the circular reference.
Example: Page has a block with a content area which might have a reference to our initial Page or parent of that Page and we get a circular dependency.
Do you have any ideas how to solve this problem? It would be awesome to be able to set how deep the API should expand the properties. Filtering the references which causes the circular dependency might be also some solution. At least for now.