Skip to content

Commit

Permalink
fix for #610, merged models
Browse files Browse the repository at this point in the history
  • Loading branch information
fehguy committed Jul 12, 2014
1 parent 71993d4 commit 94e1b75
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ trait ReaderUtil {
val grouped = tuples.groupBy(_._1)
(for (group <- grouped) yield {
val apiDescriptions = (for(g <- group._2; api <- g._2.apis) yield api).toList
group._2(0)._2.copy(apis = apiDescriptions)
val models = (for(g <- group._2; models <- g._2.models) yield models).flatten.toMap
group._2(0)._2.copy(apis = apiDescriptions, models = Option(models))
}).toList
}
}

0 comments on commit 94e1b75

Please sign in to comment.