Serialization / deserialization issues of JsonSubTypes due to incorrect usage of JsonIgnoreProperties
walaniam opened this issue · 0 comments
walaniam commented
When using schema with property type discriminator, there is a JsonIgnoreProperties added to generated class. Example
@JsonIgnoreProperties(
value = "paymentRequestType",
allowSetters = true
)
Due to missing allowGetters = true
when serializing / deserializing a list of objects with such annotation, discriminator property is skipped during serialization and therefore it cannot be deserialized to proper type.