Json – What's the easiest way to serialize an opaque type with circe
Example: opaque type UserName = String This version is serialized automatically: case class UserName(value: String) extends AnyVal
Example: opaque type UserName = String This version is serialized automatically: case class UserName(value: String) extends AnyVal