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
schemadeclares, resolving$refs through the spec’scomponents/schemas.allOfbranches all apply and are merged;oneOf/anyOfchildren 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.