softwaremill / softwaremill/tapir
[BUG] Codec.derivedValueClass with inner value class
Open
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 1.5k
- Forks
- 468
- Avg merge
- 5h 37m
- Merged PRs (30d)
- 34
Description
Tapir version: 1.2.9
Scala version: 2.13.10
Describe the bug
There's compilation error when trying to derive an inner value class with the Codec.derivedValueClass method.
How to reproduce?
import sttp.tapir.Codec
object Outer{
case class InnerV(v: String) extends AnyVal
}
Codec.derivedValueClass[Outer.InnerV]
//[error] not found: type InnerV
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Codec.derivedValueClass and reproduce the compilation error using the nested Outer.InnerV example from the issue. Trace how the method derives a codec for an inner value class; done means the example compiles successfully for Outer.InnerV without the not-found type error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100