Property MaxDepth
MaxDepth
Gets how deep records nest before the generator ends the recursion, from 1 to 128 (the writers' default limit, DefaultMaxDepth, so every value can be written): below it, arrays and maps are empty and unions take the branch that ends soonest. Once a value holds 10,000 values, the arrays and maps it starts after that are empty and its unions end as soon as they can. The default is 6.
public int MaxDepth { get; init; }