Skip to content

fix: add HandleNull to HeartbeatConverter - #372

Merged
Nihlus merged 2 commits into
Remora:mainfrom
fakejutsu:fix/iheartbeat_nullable_fix
Sep 1, 2026
Merged

fix: add HandleNull to HeartbeatConverter#372
Nihlus merged 2 commits into
Remora:mainfrom
fakejutsu:fix/iheartbeat_nullable_fix

Conversation

@fakejutsu

Copy link
Copy Markdown

System.Text.Json skips custom converters for null reference values unless HandleNull is enabled, causing the gateway heartbeat null payload to deserialize to a null IHeartbeat instead of Heartbeat(null)

@fakejutsu fakejutsu changed the title fix: add handle null to HeartbeatConverter fix: add HandleNull to HeartbeatConverter Aug 26, 2026
@Nihlus

Nihlus commented Aug 28, 2026

Copy link
Copy Markdown
Member

You have some failing tests to review, but the fundamental idea looks fine.

@Nihlus Nihlus added gateway Related to the Gateway API waiting for author The PR is awaiting an update from the author labels Aug 28, 2026
@fakejutsu
fakejutsu marked this pull request as draft August 29, 2026 07:21
@fakejutsu
fakejutsu marked this pull request as ready for review August 29, 2026 07:25
@Nihlus
Nihlus merged commit b13a2f8 into Remora:main Sep 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Related to the Gateway API waiting for author The PR is awaiting an update from the author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants