interface SchemaRegistry {
    byName: Map<string, SchemaRegistryEntry>;
    byPath: Map<string, SchemaRegistryEntry>;
    byTypeIRI: Map<string, SchemaRegistryEntry>;
    resolvedRoot: JSONSchema7;
    rootSchema: JSONSchema7;
}

Properties

byName: Map<string, SchemaRegistryEntry>

Entries keyed by definition name

byPath: Map<string, SchemaRegistryEntry>

Entries keyed by JSON pointer (e.g. "#/definitions/Category")

byTypeIRI: Map<string, SchemaRegistryEntry>

Entity entries keyed by type IRI (populated only when @type.const is present)

resolvedRoot: JSONSchema7

Root schema with any top-level $ref resolved (handles "Pattern D" where the schema itself is { "$ref": "#/$defs/SomeType" }).

rootSchema: JSONSchema7

Original root schema, unmodified