Libraries
    Preparing search index...
    • Recursively visits every SchemaBuilder reachable from schema and calls SchemaRegistry.register on each node.

      Cycle detection is performed via a visited Set of object references, so schemas may safely be shared across multiple branches without causing infinite recursion.

      Excluded schema types

      • lazy — deferred resolution would require calling the getter, which may itself reference the parent schema; lazy schemas are handled separately.

      Parameters

      • schema: SchemaBuilder<any, any, any>

        Root schema to start the walk from.

      • registry: SchemaRegistry

        Registry to register named schemas into.

      • visited: Set<SchemaBuilder<any, any, any, false, {}>> = ...

        Shared set for cycle detection; pass a new Set() for the top-level call.

      Returns void