Skip to main content

declared_paths

Function declared_paths 

Source
pub fn declared_paths(schema: &Value, spec: &Value) -> BTreeSet<String>
Expand description

Enumerate the field paths schema declares, resolving $refs through the spec’s components/schemas. allOf branches all apply and are merged; oneOf/anyOf children are conditional on which branch the value takes, so nothing below a union counts as declared. Recursive schemas stop at the repeated $ref; an open schema ({}) declares nothing below its own path.