Skip to content

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

Closed

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.

Activity

  1. self-assigned this
    on Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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