Skip to content

Commit e2aa741

Browse files
committed
Brought back getParameterAnnotation
... for reactive cases where method is an implementation and does not carry any annotations but delegate/interface has one
1 parent d593752 commit e2aa741

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/service/AbstractRequestService.java

+1
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,7 @@ private boolean isRequestBodyParam(RequestMethod requestMethod, ParameterInfo pa
780780
*/
781781
private boolean checkRequestBodyAnnotation(MethodParameter methodParameter) {
782782
return methodParameter.getParameterAnnotation(org.springframework.web.bind.annotation.RequestBody.class) != null
783+
|| methodParameter.getParameterAnnotation(io.swagger.v3.oas.annotations.parameters.RequestBody.class) != null
783784
|| AnnotatedElementUtils.findMergedAnnotation(Objects.requireNonNull(methodParameter.getParameter()), io.swagger.v3.oas.annotations.parameters.RequestBody.class) != null
784785
|| AnnotatedElementUtils.findMergedAnnotation(Objects.requireNonNull(methodParameter.getMethod()), io.swagger.v3.oas.annotations.parameters.RequestBody.class) != null;
785786
}

0 commit comments

Comments
 (0)