From 56c3bf08998e6dd72f587b4c7632ee20e08a0d88 Mon Sep 17 00:00:00 2001 From: arshan1019 <37976744+arshan1019@users.noreply.github.com> Date: Wed, 20 Nov 2024 18:16:53 +0530 Subject: [PATCH] Fix: (#3383) openapi yaml req body not importing (#3459) --- packages/bruno-app/src/utils/importers/openapi-collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-app/src/utils/importers/openapi-collection.js b/packages/bruno-app/src/utils/importers/openapi-collection.js index 955429079..d579402cd 100644 --- a/packages/bruno-app/src/utils/importers/openapi-collection.js +++ b/packages/bruno-app/src/utils/importers/openapi-collection.js @@ -271,7 +271,7 @@ const resolveRefs = (spec, components = spec?.components, visitedItems = new Set // Recursively resolve references in nested objects for (const prop in spec) { - spec[prop] = resolveRefs(spec[prop], components, visitedItems); + spec[prop] = resolveRefs(spec[prop], components, new Set(visitedItems)); } return spec;