We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71993d4 commit 94e1b75Copy full SHA for 94e1b75
modules/swagger-core/src/main/scala/com/wordnik/swagger/core/util/ReaderUtil.scala
@@ -24,7 +24,8 @@ trait ReaderUtil {
24
val grouped = tuples.groupBy(_._1)
25
(for (group <- grouped) yield {
26
val apiDescriptions = (for(g <- group._2; api <- g._2.apis) yield api).toList
27
- group._2(0)._2.copy(apis = apiDescriptions)
+ 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))
29
}).toList
30
}
31
0 commit comments