Add data model payload conversion hooks#1655
Open
tconley1428 wants to merge 4 commits into
Open
Conversation
This was referenced Jul 16, 2026
tconley1428
force-pushed
the
nexus-generated-model-wire-converter
branch
from
July 21, 2026 15:46
c0bd968 to
041bb17
Compare
tconley1428
force-pushed
the
nexus-generated-model-wire-converter
branch
from
July 21, 2026 15:50
041bb17 to
844deb0
Compare
tconley1428
marked this pull request as ready for review
July 21, 2026 18:12
tconley1428
force-pushed
the
nexus-generated-model-wire-converter
branch
from
July 21, 2026 18:31
5cf9231 to
51825ac
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds SDK payload-converter support for values and type hints that expose
_temporal_to_data_model/_temporal_from_data_modelhooks.The hooks let a type provide the data-model value that should be handed to the configured payload converter, and reconstruct the original type after the converter decodes that representation. This keeps normal SDK payload-converter behavior in one place, including codec handling and serialization-context propagation, while allowing generated or user-defined wrapper types to model wire shapes that contain nested payload fields.
This matters for signal-with-start and similar workflow-targeted requests because nested user payloads are consumed by a workflow. The hook path lets those payload fields be serialized through the target workflow payload converter context instead of leaking the surrounding Nexus operation context.
This change:
DataConvertercreates them