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
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
However, if this is getting serialized, the resulting output string will contain the type property twice, since @JsonTypeInfo(..., include = As.PROPERTY) should actually be @JsonTypeInfo(..., include = As.EXISTING_PROPERTY).
As this is probably the case for every inheritance type structure using discriminator, could you please fix this?
Regards,
Alex
The text was updated successfully, but these errors were encountered:
We are still seeing this behavior wir 3.0.1 (using jackson 2.8.7 for serialization) Another possible solution would be to add an "@JsonTypeId" to the implementing type.
Hi,
when generating types with Jackson option turned on, the following is generated for types that declare a
discriminator
:The subtype
B
overriding thediscriminatorValue
with e.g."B"
would then look something like this:However, if this is getting serialized, the resulting output string will contain the
type
property twice, since@JsonTypeInfo(..., include = As.PROPERTY)
should actually be@JsonTypeInfo(..., include = As.EXISTING_PROPERTY)
.As this is probably the case for every inheritance type structure using
discriminator
, could you please fix this?Regards,
Alex
The text was updated successfully, but these errors were encountered: