• Compiles a JSON Schema into a SchemaRegistry by:

    1. Resolving the root-level $ref if present (Pattern D).
    2. Level 1 — shallow classification: determines isEntity and typeIRI for every definition, including allOf inheritance (Pattern E).
    3. Level 2 — deep resolution: inlines value-object $refs, keeps entity $refs as pointer strings, builds stub schemas.
    4. Builds byName, byPath, and byTypeIRI lookup maps.

    No JavaScript circular object references are created.

    Parameters

    Returns SchemaRegistry