Skip to content

Commit

Permalink
Merge pull request usebruno#995 from gianpo86/main
Browse files Browse the repository at this point in the history
Update openapi-collection.js to change the order of the source for the operationName
  • Loading branch information
helloanoop authored Nov 29, 2023
2 parents 6c73362 + 4d9549d commit bb852c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
Expand Down

0 comments on commit bb852c5

Please sign in to comment.