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

    Function documentContainsKeyword

    • Scan a JSON document body for the presence of a named keyword anywhere in the structure. Walks both arrays and objects without regard to schema-vs-data position — the caller is responsible for passing a keyword whose presence is meaningful at any depth.

      Cycle-safe: cyclic references introduced by the OpenAPI bundler's structuredClone of external refs are short-circuited via the visited set so the scan terminates.

      Parameters

      • value: unknown
      • keyword: string
      • visited: WeakSet<object> = ...

      Returns boolean