fix generates mock value error based on type
This commit is contained in:
parent
e2017fd2ef
commit
f9c4a09394
|
@ -5,7 +5,8 @@
|
|||
- 更新内容:
|
||||
1. 忽略Class对象的解析。
|
||||
2. 增加对抽象Controller方法的解析。
|
||||
3. 修改阿里版本dubbo注解名称解析错误 .
|
||||
3. 修改阿里版本dubbo注解名称解析错误 。
|
||||
4. 修改模拟值生成错误。
|
||||
#### 版本号:1.9.7
|
||||
- 更新日期: 2020-10-24
|
||||
- 更新内容:
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue