From 64df75d8b6bcf3c2320e822671a0b1ed7d2efa1c Mon Sep 17 00:00:00 2001 From: Juan Pablo Marzetti Date: Thu, 29 Jun 2017 07:34:12 -0700 Subject: [PATCH] Docs and examples need model name to be passed as baseType (#5944) --- .../src/main/java/io/swagger/codegen/DefaultCodegen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java index 627139049f1..d3f983453a3 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java @@ -2580,8 +2580,8 @@ public CodegenParameter fromParameter(Parameter param, Set imports) { name = typeMapping.get(name); p.baseType = name; } else { - p.baseType = name; name = toModelName(name); + p.baseType = name; if (defaultIncludes.contains(name)) { imports.add(name); }