We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff94196 + 5fa98b1 commit fee6de5Copy full SHA for fee6de5
modules/swagger-codegen/src/main/resources/Java/apiInvoker.mustache
@@ -51,8 +51,11 @@ public class ApiInvoker {
51
}
52
53
public static Object deserialize(String json, String containerType, Class cls) throws ApiException {
54
+ if(null != containerType) {
55
+ containerType = containerType.toLowerCase();
56
+ }
57
try{
- if("List".equals(containerType)) {
58
+ if("list".equals(containerType) || "array".equals(containerType)) {
59
JavaType typeInfo = JsonUtil.getJsonMapper().getTypeFactory().constructCollectionType(List.class, cls);
60
List response = (List<?>) JsonUtil.getJsonMapper().readValue(json, typeInfo);
61
return response;
0 commit comments