Skip to content

Commit 94e1b75

Browse files
committed
fix for #610, merged models
1 parent 71993d4 commit 94e1b75

File tree

1 file changed

+2
-1
lines changed
  • modules/swagger-core/src/main/scala/com/wordnik/swagger/core/util

1 file changed

+2
-1
lines changed

modules/swagger-core/src/main/scala/com/wordnik/swagger/core/util/ReaderUtil.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ trait ReaderUtil {
2424
val grouped = tuples.groupBy(_._1)
2525
(for (group <- grouped) yield {
2626
val apiDescriptions = (for(g <- group._2; api <- g._2.apis) yield api).toList
27-
group._2(0)._2.copy(apis = apiDescriptions)
27+
val models = (for(g <- group._2; models <- g._2.models) yield models).flatten.toMap
28+
group._2(0)._2.copy(apis = apiDescriptions, models = Option(models))
2829
}).toList
2930
}
3031
}

0 commit comments

Comments
 (0)