You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@discriminatorName("type")
sealed trait Base:
def a: String
object Base:
given Schema[Base] = DeriveSchema.gen
case class BaseA(a: String) extends Base derives Schema
case class BaseB(a: String) extends Base derives Schema
Writing out an object of type BaseA includes the "type" field in 1.4.1 but not 1.6.1.
Also, reading in json with the "type" field works in 1.4.1 but in 1.6.1, I get the error:
Left(.type.BaseA(expected '"' got '{'))
The text was updated successfully, but these errors were encountered:
A structure like:
Writing out an object of type BaseA includes the "type" field in 1.4.1 but not 1.6.1.
Also, reading in json with the "type" field works in 1.4.1 but in 1.6.1, I get the error:
Left(.type.BaseA(expected '"' got '{'))
The text was updated successfully, but these errors were encountered: