forked from extern/bruno
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