Metadata operation links hang when DTO contains array of same type

Hello, I have a DTO class that references an array of objects of the same type such as the one below:

public class MyDto {
    public MyDto[] Children { get; set; }
}

For some reason, it causes the JSON, XML, etc. metadata links to hang for every operation. However, when I change the type to List<MyDto> it works fine. Any idea why the behaviour is different?

Thanks.

It’s likely caused by cyclical deps of directly referencing the same class within itself. Which metadata operation exactly is failing?

The JSON, XML, JSV and CSV links fail (hang) for all operations regardless of whether the operation references the problematic DTO or not. “/operations/metadata” link works fine.

As a workaround, I’ve changed all my array types to List and haven’t experienced any issues.