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
While the default mechanism of including a discriminator allows for easy parsing, sometimes there is a need to match a specific JSON schema that doesn't include a single field that can be used for this purpose.
We should add an annotation that can be used on the trait that indicates that no discriminator will be present, and still allow generating a From on the trait, and both From and To on the leaf classes. Only macroTo on the base class(es) should fail. Users can then either hand-code a To, or omit it if it is not needed.
While the default mechanism of including a discriminator allows for easy parsing, sometimes there is a need to match a specific JSON schema that doesn't include a single field that can be used for this purpose.
We should add an annotation that can be used on the trait that indicates that no discriminator will be present, and still allow generating a
From
on the trait, and bothFrom
andTo
on the leaf classes. Only macroTo on the base class(es) should fail. Users can then either hand-code aTo
, or omit it if it is not needed.The text was updated successfully, but these errors were encountered: