forked from extern/bruno
Merge pull request #995 from gianpo86/main
Update openapi-collection.js to change the order of the source for the operationName
This commit is contained in:
commit
bb852c5f80
@ -54,7 +54,7 @@ const buildEmptyJsonBody = (bodySchema) => {
|
|||||||
const transformOpenapiRequestItem = (request) => {
|
const transformOpenapiRequestItem = (request) => {
|
||||||
let _operationObject = request.operationObject;
|
let _operationObject = request.operationObject;
|
||||||
|
|
||||||
let operationName = _operationObject.operationId || _operationObject.summary || _operationObject.description;
|
let operationName = _operationObject.summary || _operationObject.operationId || _operationObject.description;
|
||||||
if (!operationName) {
|
if (!operationName) {
|
||||||
operationName = `${request.method} ${request.path}`;
|
operationName = `${request.method} ${request.path}`;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user