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

Proper handling of Polymorphic types when JsonTypeInfo.Id is DEDUCTION #164

Open
jcrayner opened this issue Feb 13, 2022 · 0 comments
Open

Comments

@jcrayner
Copy link

Schema generation for polymorphic types where the deserialisation strategy is of JsonTypeInfo.Id.DEDUCTION. Jackson uses a seralization strategy of JsonTypeInfo.Id.EXISTING_PROPERTY with a visibility of false and a null property name when writing polymorphic types such as this. The existing implementation relies on a property name being non-null with it's polymorphic type handling (when writing out the @type or @Class enum within the subtype), which is not appropriate for this particular strategy.

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