Skip to content

Serialization / deserialization issues of JsonSubTypes due to incorrect usage of JsonIgnoreProperties #601

Closed
@walaniam

Description

@walaniam

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions