Add `YamlEncoder` for `Option`
kpodsiad opened this issue · comments
// using scala 3.1.0
// using lib org.virtuslab::scala-yaml:0.0.4
import org.virtuslab.yaml.*
case class Foo(field: Option[String]) derives YamlCodec
running via scala-cli run .
yields compilation error
Compiling project (Scala 3.1.0, JVM)
[error] ./example2.sc:6:47: no implicit argument of type org.virtuslab.yaml.YamlEncoder[Option[String]] was found
[error] case class Foo(field: Option[String]) derives YamlCodec
[error] ^
Error compiling project (Scala 3.1.0, JVM)
Hi @kpodsiad! Do you think there is any hope for this bug to ever get fixed? Thanks!
@dubinsky I'll take a look at all the PRs and issues this week.
Thank you @lbialy!
@lbialy thanks good sir