in src/openApiService/request/request.ts [33:50]
function getMethodByString(method) {
let methodArray;
if (method.includes("|")) {
methodArray = method.split("|");
} else if (method.includes(",")) {
methodArray = method.split(",");
} else {
return method;
}
if (methodArray.includes("POST")) {
return "POST";
}
const vaildMethod = methodArray.filter((item) => FILTER_METHOD.indexOf(item) <= -1);
if (vaildMethod.length > 0) {
return vaildMethod[0];
}
return methodArray[0];
}