Skip to main content

MAX_SCHEMA_DEPTH

Constant MAX_SCHEMA_DEPTH 

Source
pub const MAX_SCHEMA_DEPTH: usize = 32;
Expand description

How deep a schema may nest before the walk gives up.

Refs can point at each other, so a cycle is reachable from a lexicon document alone and does not need a malicious record to trigger it. Real records are three or four levels deep; this is a stack guard, not a modelling limit.