Skip to main content

MAX_SCHEMA_DEPTH

Constant MAX_SCHEMA_DEPTH 

Source
pub const MAX_SCHEMA_DEPTH: usize = 32;
Expand description

Maximum nesting depth of a DynamicSchema tree that the walker will traverse. Exceeding this bound returns Error::SchemaDepthExceeded.

32 matches crate::codec::dynamic::MAX_DYNAMIC_DEPTH so the schema walker cannot produce a deeper Dynamic than the tagged- format walker can re-encode.