From 73ac969d354553226ffe74bb8838dc5e1fd56006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Hern=C3=A1ndez?= Date: Fri, 23 Aug 2024 21:19:37 +0200 Subject: [PATCH] fix: replace curly braces with colons in OpenAPI path parameters (#2513) (#2533) --- 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 524c434d5..5966563a7 100644 --- a/packages/bruno-app/src/utils/importers/openapi-collection.js +++ b/packages/bruno-app/src/utils/importers/openapi-collection.js @@ -386,7 +386,7 @@ const parseOpenApiCollection = (data) => { .map(([method, operationObject]) => { return { method: method, - path: path, + path: path.replace(/{([^}]+)}/g, ':$1'), // Replace placeholders enclosed in curly braces with colons operationObject: operationObject, global: { server: baseUrl,