From c0474d400a03b97df6a97b97871996f06801254c Mon Sep 17 00:00:00 2001 From: frikky Date: Tue, 13 Oct 2020 01:35:53 +0200 Subject: [PATCH] Added operationId check --- frontend/src/views/AppCreator.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/AppCreator.jsx b/frontend/src/views/AppCreator.jsx index 013ae5c2..3242565c 100644 --- a/frontend/src/views/AppCreator.jsx +++ b/frontend/src/views/AppCreator.jsx @@ -418,8 +418,13 @@ const AppCreator = (props) => { continue } + var tmpname = methodvalue.summary + if (methodvalue.operationId !== undefined && methodvalue.operationId !== null && methodvalue.operationId.length > 0) { + tmpname = methodvalue.operationId + } + var newaction = { - "name": methodvalue.summary, + "name": tmpname, "description": methodvalue.description, "url": path, "method": method.toUpperCase(), @@ -668,6 +673,7 @@ const AppCreator = (props) => { } }, "summary": item.name, + "operationId": item.name.split(" ").join("_"), "description": item.description, "parameters": [] }