Closed ThijsBroersen closed 3 weeks ago
This PR implements support for string-based literal types. Single-value or Union-based.
Example:
case class Foo(aOrB: "A" | "B", optA: Option["A"]) derives JsonCodec Foo("A", Some("A")).toJson """{"aOrB": "A", "optA": "A"}""".fromJson[Foo]
I have a commit with doc changes ready but mdoc is not configured for Scala 3 examples... Can we change that?
This PR implements support for string-based literal types. Single-value or Union-based.
Example: