fix: 修复 OpenAPI 方法名大小写解析问题,添加建表 SQL
This commit is contained in:
@@ -137,11 +137,12 @@ public class ApiEndpointServiceImpl implements ApiEndpointService {
|
||||
JsonNode methods = pathEntry.getValue();
|
||||
|
||||
for (Iterator<String> it = methods.fieldNames(); it.hasNext(); ) {
|
||||
String method = it.next().toUpperCase();
|
||||
String methodKey = it.next();
|
||||
String method = methodKey.toUpperCase();
|
||||
// Skip non-HTTP-method keys (e.g., summary, description at path level)
|
||||
if (!isHttpMethod(method)) continue;
|
||||
|
||||
JsonNode endpointNode = methods.get(method);
|
||||
JsonNode endpointNode = methods.get(methodKey);
|
||||
|
||||
String operationId = endpointNode.path("operationId").asText();
|
||||
if (operationId.isEmpty()) continue;
|
||||
|
||||
Reference in New Issue
Block a user