swagger-api/swagger-codegen

[Java] Does not support Map of Map of String or other type

开放

#3,241 创建于 2016年6月29日

 (5 条评论) (0 个反应) (0 位负责人)HTML (5,474 个派生)batch import
Client: JavaIssue: Bughelp wanted

仓库指标

星标
 (12,701 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Description

Currently, Java does not support Map of Map of String or other type

public class MapTest   {
  @SerializedName("map_map_of_string")
  private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();

As shown above, the inner Map is not mapped to HashMap

Swagger-codegen version

Latest master (Jun 28, 2016)

Suggest a Fix

The issue likely has to do with getTypeDeclaration in modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractJavaCodegen.java

贡献者指南