mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-07 16:44:27 +01: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:
parent
3f80a4dfa2
commit
4d9549d2cc
@ -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}`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user