Libraries v5.0.0
    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.

      Use-site aliases walk their canonical definition. Lazy schemas resolve their getter; the shared visited set prevents cycles through named recursive roots.

      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