-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Mixin not working on Collections #4424
Comments
One clarifying question (just to be sure): would it work if |
One thing to note is that |
I didn't try that. In the original case I can't change the entities. |
Then this is not the correct route for the original case. There I have a Map<String, Object> where the to be ignored types are in. Is there any way to dynamically ignore types? |
There is no out-of-the-box way to dynamically ignore by type: feature was originally intended at dropping POJO properties by static type. Ignoral is calculated when construction serializers/deserializers and literally drops otherwise introspected property from (de)serializer. |
Do you have an idea how to dynamically not serialize specific types? |
Search before asking
Describe the bug
When I use mixins with
@JsonIgnoreType
to skip specific types Jackson does not skip the type when it appears in Collections.Version Information
No response
Reproduction
I have written a few unit tests to explain the situation. I expect all tests to succeed, but at the moment 2 tests are failing. The code to showcase this is in https://github.com/nickstolwijk/jackson-bug-mixins/
Expected behavior
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: