Skip to content

Consider DefaultTyping configuration in Jackson Serializers#3309

Draft
mp911de wants to merge 5 commits intomainfrom
issue/3306
Draft

Consider DefaultTyping configuration in Jackson Serializers#3309
mp911de wants to merge 5 commits intomainfrom
issue/3306

Conversation

@mp911de
Copy link
Copy Markdown
Member

@mp911de mp911de commented Feb 10, 2026

We're exploring whether it makes sense to accept a DefaultTyping config option for Jackson serializer configuration.

Likely, accepting DefaultTyping causes several downstream effects that we actually do not like (e.g. removing typehints for final types such as records likely breaking their support).

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 10, 2026
@mp911de mp911de marked this pull request as draft February 10, 2026 14:46
@mp911de mp911de added the status: pending-design-work Needs design work before any code can be developed label Mar 2, 2026
@onobc onobc force-pushed the issue/3306 branch 2 times, most recently from 63ab6cb to e506e63 Compare March 13, 2026 00:12
@onobc onobc removed the status: waiting-for-triage An issue we've not yet triaged label Mar 15, 2026
mp911de added 2 commits March 31, 2026 22:21
We're exploring whether it makes sense to accept a `DefaultTyping` config option for Jackson serializer configuration.
@FunctionalInterface
public interface DefaultTypingPredicate {

enum Action {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about ConditionOutcome? Or just Outcome, like in Spring Boot conditions?

* "https://owasp.org/www-community/vulnerabilities/Deserialization_of_untrusted_data">https://owasp.org/www-community/vulnerabilities/Deserialization_of_untrusted_data</a>
*/
@Contract("-> this")
@Contract("_ -> this")
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no argument given to this method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: pending-design-work Needs design work before any code can be developed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RedisCache with GenericJacksonJsonRedisSerializer breaks when using enums

3 participants