Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
walaniam opened this issue Aug 16, 2023 · 0 comments
Assignees

Comments

@walaniam
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant