# `JSONSchex.Validator.Reference`
[🔗](https://github.com/xinz/jsonschex/blob/main/lib/jsonschex/validator/reference.ex#L1)

Resolves `$ref` and `$dynamicRef` during validation, including remote schema
loading and JIT compilation of JSON Pointer references.

# `validate_dynamic_ref`

Resolves a `$dynamicRef` by checking if the static target has a matching
`$dynamicAnchor`, then performing dynamic scope lookup through the scope stack.
Falls back to static `$ref` resolution if no dynamic anchor is found.

# `validate_ref`

Resolves and validates a static `$ref`.

Looks up the target schema in the compiled `defs` registry. If not found locally
and the reference points to a remote URI, attempts to load it using the `loader`.
Supports JSON Pointer references, anchor references, and absolute/relative URIs.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
