From 4d9549d2ccaaf931344a7d69d4a98034ff1c3155 Mon Sep 17 00:00:00 2001 From: Gianluca Date: Mon, 20 Nov 2023 11:00:54 +0100 Subject: [PATCH] Update openapi-collection.js Swap order for the source of the operationName when importing from openApi with a summary --- 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 febe7d61d..0bc42b4fd 100644 --- a/packages/bruno-app/src/utils/importers/openapi-collection.js +++ b/packages/bruno-app/src/utils/importers/openapi-collection.js @@ -54,7 +54,7 @@ const buildEmptyJsonBody = (bodySchema) => { const transformOpenapiRequestItem = (request) => { let _operationObject = request.operationObject; - let operationName = _operationObject.operationId || _operationObject.summary || _operationObject.description; + let operationName = _operationObject.summary || _operationObject.operationId || _operationObject.description; if (!operationName) { operationName = `${request.method} ${request.path}`; }