fix generates mock value error based on type

This commit is contained in:
oppofind 2020-11-05 21:00:55 +08:00
parent e2017fd2ef
commit f9c4a09394
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,8 @@
- 更新内容:
1. 忽略Class对象的解析。
2. 增加对抽象Controller方法的解析。
3. 修改阿里版本dubbo注解名称解析错误 .
3. 修改阿里版本dubbo注解名称解析错误 。
4. 修改模拟值生成错误。
#### 版本号1.9.7
- 更新日期: 2020-10-24
- 更新内容:

View File

@ -272,7 +272,7 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate<ApiDoc> {
if (JavaClassValidateUtil.isMvcIgnoreParams(typeName, configBuilder.getApiConfig().getIgnoreRequestParams())) {
continue;
}
String simpleTypeName = javaType.getValue().toLowerCase();
String simpleTypeName = javaType.getValue();
typeName = DocClassUtil.rewriteRequestParam(typeName);
gicTypeName = DocClassUtil.rewriteRequestParam(gicTypeName);
JavaClass javaClass = configBuilder.getJavaProjectBuilder().getClassByName(typeName);