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

Fix serialization of Java objects in step results/errors #41

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

KiKoS0
Copy link
Collaborator

@KiKoS0 KiKoS0 commented Feb 28, 2024

Replaces Klaxon with jackson's ObjectMapper for serializing callFunction responses. Which means it's no longer required to have step/function results to be public classes with public properties only. That requirement was introduced here: #19 (comment).

Ideally I think we want to use jackson as much as possible eventually removing klaxon since it's not Java friendly.

@KiKoS0 KiKoS0 self-assigned this Feb 28, 2024
@KiKoS0 KiKoS0 changed the title [WIP] Fixes serialization of Java objects in step results/errors [WIP] Fix serialization of Java objects in step results/errors Feb 28, 2024
@KiKoS0 KiKoS0 changed the title [WIP] Fix serialization of Java objects in step results/errors Fix serialization of Java objects in step results/errors Feb 28, 2024
@KiKoS0 KiKoS0 marked this pull request as ready for review February 28, 2024 07:26
Copy link
Collaborator

@albertchae albertchae left a comment

Choose a reason for hiding this comment

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

nice! thanks for figuring this out

Step/Function result classes are no longer required to be public
with strictly public properties to serialize correctly when
sending response payloads to Inngest.
@KiKoS0 KiKoS0 merged commit 3392c2d into main Feb 28, 2024
10 checks passed
@KiKoS0 KiKoS0 deleted the fix-deserialization branch February 28, 2024 07:39
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.

2 participants