With the great help of [json-ptr](https://www.npmjs.com/package/json-ptr) I made a small function that, based on the schema and/or data, retrieves the schema and/or data at a given data location using (relative) JSON pointer (RFC 6901).
Traverse JSON Schema passing each schema object to callback
Parse, Resolve, and Dereference JSON Schema $ref pointers
High-performance JSON Pointer implementation
Parse, Resolve, and Dereference JSON Schema $ref pointers
Read a protobuf schema from the disk, parse it and resolve all imports
Some utilities for JSON pointers described by RFC 6901
Resolve all your $refs
Tool for generation samples based on OpenAPI payload/response schema
Parse, Resolve, and Dereference JSON Schema $ref pointers
json pointer - failsafe data retrieval from js and json objects
This package provides a TypeScript and JavaScript implementation of [RFC6901 JavaScript Object Notation (JSON) Pointer][rfc6901].
"Utilities for walking JSON Schemas and performing actions on them."
Javascript References ($ref) and Pointers library
Tool for generation samples based on JSON Schema Draft 7
A Query Language and Runtime which can target any service.
RCF 6901 implementation of JSON Pointer
Parse, Resolve, and Dereference JSON Schema $ref pointers
Dereference (aka parse refs) from JSON Schemas
Simple JSON Addressing.
Utility functions to deal with references in objects
Evaluate JSON Pointer expressions against ApiDOM.
Converts JSON schema objects or files into Zod schemas
Resolve the path of a module like `require.resolve()` but from a given path