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

Commit 8a2d18c

Browse files
authored
Merge pull request #957 from jasonkung22/fix_post_query_param
fix: Fixed issue caused by isQueryParam error
2 parents 2fafb78 + 4bad870 commit 8a2d18c

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)