fix json example error for Timestamp filed
This commit is contained in:
parent
60870be61f
commit
3089e45514
|
@ -119,6 +119,12 @@
|
|||
1. fix #I14PT5 header重复渲染到文档
|
||||
2. fix #I14MV7 不设置dataDictionaries出现空指针错误
|
||||
3. 增加请求参数枚举字段解析(试用功能)
|
||||
|
||||
#### 版本号:1.7.7
|
||||
- 更新日期:待定
|
||||
- 更新内容:
|
||||
1. 修改timestamp类型字段创建json示例错误bug
|
||||
|
||||
|
||||
|
||||
|
|
@ -820,7 +820,7 @@ public class SourceBuilder {
|
|||
String subTypeName = field.getType().getFullyQualifiedName();
|
||||
String fieldGicName = field.getType().getGenericCanonicalName();
|
||||
data0.append("\"").append(fieldName).append("\":");
|
||||
if (DocClassUtil.isPrimitive(typeSimpleName)) {
|
||||
if (DocClassUtil.isPrimitive(subTypeName)) {
|
||||
CustomRespField customResponseField = responseFieldMap.get(fieldName);
|
||||
if (null != customResponseField) {
|
||||
Object val = customResponseField.getValue();
|
||||
|
|
|
@ -242,6 +242,8 @@ public class DocClassUtil {
|
|||
return "string";
|
||||
case "localdate":
|
||||
return "string";
|
||||
case "timestamp":
|
||||
return "string";
|
||||
case "multipartfile":
|
||||
return "file";
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue