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

Commit 4bad870

Browse files
committed
fix: Fixed issue caused by isQueryParam error
This problem can cause the `@RequestParam` parameter of the POST request to be placed in the body parameter, and because the parameter is placed incorrectly, may cause the object's nested parameter structure to be incorrect. The root cause of this BUG is the incorrect modification in #808 to fix #799 Closes #953
1 parent 4ab90e9 commit 4bad870

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/com/ly/doc/template/IRestDocTemplate.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,9 +1100,7 @@ default ApiMethodReqParam requestParams(final DocJavaMethod docJavaMethod, Proje
11001100
continue;
11011101
}
11021102

1103-
boolean queryParam = Methods.GET.getValue().equals(docJavaMethod.getMethodType())
1104-
&& Methods.DELETE.getValue().equals(docJavaMethod.getMethodType()) && !isRequestBody
1105-
&& !isPathVariable;
1103+
boolean queryParam = !isRequestBody && !isPathVariable;
11061104

11071105
String[] gicNameArr = DocClassUtil.getSimpleGicName(typeName);
11081106
// Handle if it is collection types

0 commit comments

Comments
 (0)