Gets or sets the maximum allowed nesting depth for YAML mappings and sequences during serialization and deserialization.
public int MaxDepth { get; init; }
A value of 0 uses the default limit of 64.
0