mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-01 00:24:08 +00:00
Update openapi-collection.js
Swap order for the source of the operationName when importing from openApi with a summary
This commit is contained in:
@@ -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}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user