Skip to content

Commit

Permalink
update: Fix the issue of extra double quotes in null parameter values.
Browse files Browse the repository at this point in the history
  • Loading branch information
shalousun committed Mar 25, 2024
1 parent c2e9d48 commit 1ca056e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/ly/doc/helper/ParamsBuildHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public static List<ApiParam> buildParams(String className, String pre, int level
}
if (JavaClassValidateUtil.isPrimitive(subTypeName)) {
if (StringUtil.isEmpty(fieldValue)) {
fieldValue = DocUtil.getValByTypeAndFieldName(subTypeName, field.getName());
fieldValue = StringUtil.removeQuotes(DocUtil.getValByTypeAndFieldName(subTypeName, field.getName()));
}
ApiParam param = ApiParam.of().setClassName(className).setField(pre + fieldName);
param.setPid(pid).setMaxLength(maxLength).setValue(fieldValue);
Expand Down

0 comments on commit 1ca056e

Please sign in to comment.