schema-components - v3.7.0
    Preparing search index...

    Function deepNormalise

    • Deep-normalise a JSON Schema object by applying a per-node transform and recursing into every sub-schema location.

      The optional visited set guards against shared object references and cycles introduced upstream (e.g. by the OpenAPI bundler's structuredClone-based inlining of external refs). The walk skips already-seen nodes by returning the original reference rather than recursing forever.

      Parameters

      • schema: Record<string, unknown>
      • transform: NodeTransform
      • visited: WeakSet<object> = ...

      Returns Record<string, unknown>