新增Any参数类型

This commit is contained in:
mxd
2022-03-12 22:53:11 +08:00
parent e299a7d652
commit 565a60a8fc
3 changed files with 9 additions and 1 deletions

View File

@@ -193,7 +193,7 @@ public class SwaggerProvider {
result.put("items", Collections.emptyList());
}
result.put("type", target.getDataType().getJavascriptType());
} else if (DataType.Object == target.getDataType()) {
} else if (DataType.Object == target.getDataType() || DataType.Any == target.getDataType()) {
String voName = groupName + "«" + info.getPath().replaceFirst("/", "").replaceAll("/", "_") + (StringUtils.equals("response", definitionType) ? "«response«" : "«request«") + parentName + target.getName() + "»»»";
Map<String, Object> definition = new HashMap<>(4);