Fix: (#3383) openapi yaml req body not importing (#3459)

This commit is contained in:
arshan1019 2024-11-20 18:16:53 +05:30 committed by GitHub
parent 11a3ea9fbb
commit 56c3bf0899
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;