From 91762c6fd0492b50aa1f1f1cf9a9d42af09ce0a1 Mon Sep 17 00:00:00 2001 From: Erik Mendoza Date: Thu, 10 Feb 2022 12:23:14 -0600 Subject: [PATCH] Fix fallback operationId>summary>description>path+method --- lib/schemaUtils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/schemaUtils.js b/lib/schemaUtils.js index 095b2e2..3a9a520 100644 --- a/lib/schemaUtils.js +++ b/lib/schemaUtils.js @@ -2345,7 +2345,8 @@ module.exports = { if (fromWebhooks) { reqName = utils.insertSpacesInName(operation.operationId) || operation.summary || - operation.description; + operation.description || + `${this.cleanWebhookName(operationItem.path)} - ${operationItem.method}`; } else { reqName = operation.summary || utils.insertSpacesInName(operation.operationId) || reqUrl;