Skip to content

Commit 91c553f

Browse files
author
bnasslahsen
committed
Improve support of Webflux with Functional Endpoints
1 parent ee8c964 commit 91c553f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public Operation build(HandlerMethod handlerMethod, RequestMethod requestMethod,
191191
if (!isParamToIgnore(methodParameter)) {
192192
parameter = buildParams(parameterInfo, components, requestMethod, methodAttributes.getJsonViewAnnotation());
193193
// Merge with the operation parameters
194-
parameter = parameterBuilder.mergeParameter(operationParameters, parameter);
194+
parameter = GenericParameterBuilder.mergeParameter(operationParameters, parameter);
195195
List<Annotation> parameterAnnotations = Arrays.asList(methodParameter.getParameterAnnotations());
196196
if (isValidParameter(parameter))
197197
applyBeanValidatorAnnotations(parameter, parameterAnnotations);
@@ -235,7 +235,7 @@ private LinkedHashMap<String, Parameter> getParameterLinkedHashMap(Components co
235235
return map;
236236
}
237237

238-
public static Collection<Parameter> getHeaders(MethodAttributes methodAttributes, LinkedHashMap<String, Parameter> map) {
238+
public static Collection<Parameter> getHeaders(MethodAttributes methodAttributes, Map<String, Parameter> map) {
239239
for (Map.Entry<String, String> entry : methodAttributes.getHeaders().entrySet()) {
240240
Parameter parameter = new Parameter().in(ParameterIn.HEADER.toString()).name(entry.getKey()).schema(new StringSchema().addEnumItem(entry.getValue()));
241241
if (map.containsKey(entry.getKey())) {

0 commit comments

Comments
 (0)