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.
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
structuredCloneof external refs are short-circuited via thevisitedset so the scan terminates.