tapir
tapir copied to clipboard
[BUG] mapTo fails to compile if case class is defined inside object
Tapir version: 1.11.14
Scala version: 2.13.16
The following code fails to compile:
object Foo {
case class Bar(x: String)
}
val b = plainBody[String].mapTo[Foo.Bar]
with the following message:
not found: value Bar