swagger-api/swagger-codegen
在 GitHub 查看[Java] Does not support Map of Map of String or other type
Open
#3,241 建立於 2016年6月29日
Client: JavaIssue: Bughelp wanted
倉庫指標
- Star
- (12,701 star)
- PR 合併指標
- (30 天內沒有已合併 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