Skip to content

Commit 4822f59

Browse files
authored
codegen: ensure schemas are distinct when splitting across ranges (#3957)
1 parent 33dfeba commit 4822f59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openapi-codegen/core/src/main/scala/sttp/tapir/codegen/SchemaGenerator.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ object SchemaGenerator {
148148
// Select next candidate. Order lexicographically for stable output
149149
val next = initialSet.minBy(_._1)
150150
recurse(next)
151-
res += nextRing.sortBy(_._1)
151+
res += nextRing.distinct.sortBy(_._1)
152152
}
153153
res.toSeq
154154
}

0 commit comments

Comments
 (0)