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

Register jdk8 module in DgsSSESubscriptionHandler #1950

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

kailyak
Copy link
Contributor

@kailyak kailyak commented Jun 27, 2024

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Changes in this PR

  • Add configuration for Jdk8 Module to jackson object mapper
  • Added implementation dependency for bringing in jackson's Jdk8Module

Describe the new behavior from this PR, and why it's needed
Internally the use case arose for needing to serialize java 8 Optionals in SSE subscription calls. Since the object mapper in DgsSSESubscriptionHandler is not configured for the Jdk8 module an error was thrown when that type was part of the payload here.

Testing done

Tested on app which had the serialization error.

@kailyak kailyak force-pushed the configure-jackson-mapper-for-jdk8-support branch from d76f24f to 1294a1a Compare June 28, 2024 15:16
@kailyak kailyak requested a review from kilink June 28, 2024 15:30
@kailyak kailyak force-pushed the configure-jackson-mapper-for-jdk8-support branch from 1294a1a to 2715ac3 Compare June 28, 2024 15:31
@kailyak kailyak merged commit 567d6cf into master Jul 1, 2024
3 checks passed
@kilink kilink deleted the configure-jackson-mapper-for-jdk8-support branch July 1, 2024 18:18
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

Successfully merging this pull request may close these issues.

3 participants