Skip to content

Commit

Permalink
Merge pull request #632 from delei/master
Browse files Browse the repository at this point in the history
fix:#623
  • Loading branch information
shalousun authored Oct 14, 2023
2 parents d6c91a4 + 8b904d2 commit 908fb93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/ly/doc/helper/JsonBuildHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ public static String buildJson(String typeName, String genericCanonicalName,
fieldName = StringUtil.isEmpty(customResponseField.getReplaceName()) ? fieldName : customResponseField.getReplaceName();
}
}
fieldName = fieldName.trim();
data0.append("\"").append(fieldName).append("\":");
String fieldValue = getFieldValueFromMock(subTypeName, tagsMap, typeSimpleName);
if (JavaClassValidateUtil.isPrimitive(subTypeName)) {
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/ly/doc/helper/ParamsBuildHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ public static List<ApiParam> buildParams(String className, String pre, int level
&& JavaClassUtil.isTargetChildClass(simpleName, customResponseField.getOwnerClassName()) && isResp) {
fieldName = customResponseField.getReplaceName();
}
fieldName = fieldName.trim();
// Analyzing File Type Field
if (JavaClassValidateUtil.isFile(fieldGicName)) {
ApiParam param = ApiParam.of().setField(pre + fieldName).setType("file")
Expand Down

0 comments on commit 908fb93

Please sign in to comment.