Skip to main content

MAX_SCHEMA_DEPTH

Constant MAX_SCHEMA_DEPTH 

Source
const MAX_SCHEMA_DEPTH: usize = 128;
Expand description

Cap on nested-type depth while parsing an Avro schema JSON. The parser recurses through parse_inner for every nested record/array/map/ union so an untrusted schema like {"type":{"type":{"type":...}}} can otherwise overflow the stack.