pub const MAX_DOCUMENT_DEPTH: usize = 128;Expand description
Maximum structural nesting depth for template documents.
A valid OpenJD template reaches at most ~8 levels of nesting
(e.g. steps[0].script.embeddedFiles[0].data). 128 is generous
while preventing stack exhaustion from pathological inputs.
Matches serde_json’s hardcoded recursion limit so both formats
behave identically on deeply nested input.