Skip to main content

Module coverage

Module coverage 

Source
Expand description

Every field the spec declares for a response, as population paths.

The population lock only protects fields that have been observed at least once — a field declared in the schema but never wired to data is invisible to it. This walk enumerates the response schema’s field paths in the same dotted/[] notation as super::population, so declared-but-never-populated fields can be diffed, locked, and gated.

Functions§

declared_paths
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.