Skip to content

fix: keep empty string payloads when serializing#555

Merged
nvasiu merged 2 commits into
mainfrom
fix-serialize-empty-payloads
Jul 20, 2026
Merged

fix: keep empty string payloads when serializing#555
nvasiu merged 2 commits into
mainfrom
fix-serialize-empty-payloads

Conversation

@nvasiu

@nvasiu nvasiu commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available:

#554

Description of changes:

Fixed : OperationUpdate.to_dict() dropped empty string payloads, so on replay the payload would be None.

Also added 3 tests:

  • Test OperationUpdate.to_dict() returns empty string payloads.
  • Test an operation using PassThroughSerdes returns an empty string payload on first run.
    • + Test the same for replay.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@zhongkechen
zhongkechen requested a review from yaythomas July 20, 2026 22:33
@zhongkechen zhongkechen linked an issue Jul 20, 2026 that may be closed by this pull request

@yaythomas yaythomas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:shipit:

nice find! 🙇

@nvasiu
nvasiu merged commit b448f3e into main Jul 20, 2026
12 checks passed
@nvasiu
nvasiu deleted the fix-serialize-empty-payloads branch July 20, 2026 23:32
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.

Empty serialized payloads are dropped, causing "" to replay as None

3 participants