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:
Anoop M D 2023-11-30 02:10:12 +05:30 committed by GitHub
commit bb852c5f80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}`;
}