Skip to content

Commit fee6de5

Browse files
committed
Merge branch 'geoand-jackson_array' into develop_2.0
2 parents ff94196 + 5fa98b1 commit fee6de5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/swagger-codegen/src/main/resources/Java/apiInvoker.mustache

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ public class ApiInvoker {
5151
}
5252

5353
public static Object deserialize(String json, String containerType, Class cls) throws ApiException {
54+
if(null != containerType) {
55+
containerType = containerType.toLowerCase();
56+
}
5457
try{
55-
if("List".equals(containerType)) {
58+
if("list".equals(containerType) || "array".equals(containerType)) {
5659
JavaType typeInfo = JsonUtil.getJsonMapper().getTypeFactory().constructCollectionType(List.class, cls);
5760
List response = (List<?>) JsonUtil.getJsonMapper().readValue(json, typeInfo);
5861
return response;

0 commit comments

Comments
 (0)