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
Expected behavior is to include a type discriminator field whenever value is encoded using a parent codec.
From what I see in the generated macro Parent codec, the encoding is fully delegated to the child codec whenever it exists, and the child codec on its own disregards the discriminator.
I'm not sure if it's a consistent behavior from the user perspective, given there is an explicit discriminator configuration set on the parent codec.
The text was updated successfully, but these errors were encountered:
Simple reproduction:
https://scastie.scala-lang.org/ApPHtGwrRE2GCGUpECBGww
Expected behavior is to include a
type
discriminator field whenever value is encoded using a parent codec.From what I see in the generated macro
Parent
codec, the encoding is fully delegated to the child codec whenever it exists, and the child codec on its own disregards the discriminator.I'm not sure if it's a consistent behavior from the user perspective, given there is an explicit discriminator configuration set on the parent codec.
The text was updated successfully, but these errors were encountered: