Skip to content
This page is available as Markdown at /api/traversal/functions/getpathsubschema.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.

getPathSubSchema

getPathSubSchema(snapshot, path): Schema

Defined in: get-path-sub-schema.ts:16

Return the Schema view that applies at a given path.

For paths at the root of the document, or for paths where no ancestor is a registered container, returns the top-level schema. For paths inside a container, walks ancestors to find the nearest container and returns the sub-schema derived from its of declaration.

TraversalSnapshot

Path

Schema