play-json-derived-codecs
play-json-derived-codecs copied to clipboard
There should be an option to serialize sealed trait hierarchies with only case object values to just a string.
The following code fails to compile with a `could not find Lazy implicit value of type julienrf.json.derived.DerivedReads[A]`: ```scala import julienrf.json.derived import play.api.libs.json._ sealed trait Minimize object Minimize { implicit val...
neither ``` scala sealed trait SillyTrait case class SillyObject(silly: SillyObject) extends SillyTrait object SillyTrait { implicit lazy val format: OFormat[SillyTrait] = flat.oformat((__ \ "type").format[String]) } ``` or ``` scala sealed...
``` scala case class Dog(…) case class Cat(…) ``` and then: ``` scala derived.oformat[Dog :+: Cat :+: CNil] ```
**version info :** play-json-derived-codecs: 10.0.2 play framework: 2.8.15 jdk: 11 **problem describe:** our system shutdown because of stackOverflow. **And the stack is** : _[0;39m[[1;31mINFO[0;39m] [34m2022-09-30 17:03:46,744[0;39m [[31mapplication-akka.actor.default-dispatcher-381[0;39m] [35mapplication[0;39m - [36m[01bc89095dbf14ce]...
The play-json team changed the groupId for the dependency from `org.typesafe.play` to `org.playframework` for 3.x and later (https://github.com/playframework/play-json/releases/tag/3.0.0). As a workaround, it still uses the same package names so this...
Adds support for play-json 3.0 with the new groupId on the dependency. Fixes #91
It would be great if the library could be used in Scala 3 projects. What are the prerequisites of this upgrade? As I can see a new version of Shapeless...