> For the complete documentation index, see [llms.txt](/llms.txt).
> The full corpus is at [llms-full.txt](/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.

## Parameters

### snapshot

`TraversalSnapshot`

### path

`Path`

## Returns

`Schema`