Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Commit 0572179

Browse files
authored
Merge pull request #772 from shalousun/master
update: Fix the issue of extra double quotes in null parameter values.
2 parents 23378b9 + 1ca056e commit 0572179

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/ly/doc/helper/ParamsBuildHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public static List<ApiParam> buildParams(String className, String pre, int level
314314
}
315315
if (JavaClassValidateUtil.isPrimitive(subTypeName)) {
316316
if (StringUtil.isEmpty(fieldValue)) {
317-
fieldValue = DocUtil.getValByTypeAndFieldName(subTypeName, field.getName());
317+
fieldValue = StringUtil.removeQuotes(DocUtil.getValByTypeAndFieldName(subTypeName, field.getName()));
318318
}
319319
ApiParam param = ApiParam.of().setClassName(className).setField(pre + fieldName);
320320
param.setPid(pid).setMaxLength(maxLength).setValue(fieldValue);

0 commit comments

Comments
 (0)