tapir icon indicating copy to clipboard operation
tapir copied to clipboard

[BUG] mapTo fails to compile if case class is defined inside object

Open vkorenev opened this issue 8 months ago • 0 comments

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

vkorenev avatar Feb 19 '25 01:02 vkorenev