Skip to content

Commit 550fade

Browse files
committed
Codegen.apiToMap should use config.processResponseClass when setting the returnContainer property. Test passes now
1 parent aa1b4fc commit 550fade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/com/wordnik/swagger/codegen/Codegen.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ class Codegen(config: CodegenConfig) {
436436
val ComplexTypeMatcher(basePart) = operation.responseClass
437437

438438
properties += "returnType" -> config.processResponseDeclaration(operation.responseClass.replaceAll(basePart, config.processResponseClass(basePart).get))
439-
properties += "returnContainer" -> (operation.responseClass.substring(0, n))
439+
properties += "returnContainer" -> config.processResponseClass(operation.responseClass.substring(0, n))
440440
properties += "returnBaseType" -> config.processResponseClass(basePart)
441441
properties += "returnTypeIsPrimitive" -> {
442442
(config.languageSpecificPrimitives.contains(basePart) || primitives.contains(basePart)) match {

0 commit comments

Comments
 (0)