Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
aureamunoz committed Feb 21, 2025
1 parent 2662b14 commit 5b6b3d3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,10 @@ && isParameterContainerType(paramType.asClassType())) {
handleSortedSetParam(existingConverters, errorLocation, hasRuntimeConverters, builder, elementType,
currentMethodInfo);
}
} else if ((pt.name().equals(MAP) || pt.name().equals(MULTI_VALUED_MAP)) && type != ParameterType.BODY) {
} else if ((pt.name().equals(MAP) || pt.name().equals(MULTI_VALUED_MAP)) && type != ParameterType.BODY
&& type != ParameterType.FORM) {
//Map and Multimap are typically used to represent query parameters or headers, not structured data in a request body or form.
//Body and form are often mapped to POJOs or richer structures.
typeHandled = true;
builder.setSingle(false);
elementType = toClassName(pt.arguments().get(0), currentClassInfo, actualEndpointInfo, index);
Expand Down

0 comments on commit 5b6b3d3

Please sign in to comment.