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:22
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. A bare type reference in
that of resolves to the nearest declaration of the type on the path’s
ancestors, then to the schema’s root block objects.
Parameters
Section titled “Parameters”snapshot
Section titled “snapshot”TraversalSnapshot
Path
Returns
Section titled “Returns”Schema