Skip to content

Commit 3a46036

Browse files
author
bnasslahsen
committed
2 parents 05b7398 + 917fd01 commit 3a46036

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ To generate documentation automatically, make sure all the methods declare the H
9696

9797
## spring-webflux support with Annotated Controllers
9898
* Documentation can be available in yaml format as well, on the following path : /v3/api-docs.yaml
99-
* Add the library to the list of your project dependencies (No additional configuration is needed)
99+
* Add the library to the list of your project dependencies ( No additional configuration is needed)
100100

101101
```xml
102102
<dependency>

springdoc-openapi-common/src/main/java/org/springdoc/core/AbstractRequestBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ public Operation build(HandlerMethod handlerMethod, RequestMethod requestMethod,
160160
// requests
161161
String[] pNames = this.localSpringDocParameterNameDiscoverer.getParameterNames(handlerMethod.getMethod());
162162
MethodParameter[] parameters = handlerMethod.getMethodParameters();
163-
String[] reflectionParametersNames = Arrays.stream(parameters).map(MethodParameter::getParameterName).toArray(String[]::new);
164-
if (pNames == null)
163+
String[] reflectionParametersNames = Arrays.stream(handlerMethod.getMethod().getParameters()).map(java.lang.reflect.Parameter::getName).toArray(String[]::new);
164+
if (pNames == null || Arrays.stream(pNames).anyMatch(Objects::isNull))
165165
pNames = reflectionParametersNames;
166166
parameters = DelegatingMethodParameter.customize(pNames, parameters);
167167
RequestBodyInfo requestBodyInfo = new RequestBodyInfo();

0 commit comments

Comments
 (0)