Skip to content

Fix field presence#6

Merged
kafkiansky merged 1 commit into0.1.xfrom
fix-field-presence
Apr 4, 2026
Merged

Fix field presence#6
kafkiansky merged 1 commit into0.1.xfrom
fix-field-presence

Conversation

@kafkiansky
Copy link
Copy Markdown
Contributor

@kafkiansky kafkiansky commented Apr 4, 2026

Fixes proto3 optional presence handling in reflection encoding: nullable scalar fields are now serialized when explicitly set, even if the value is a scalar default (0, "", false), while null remains "not set" and is skipped. Non-nullable scalar fields keep previous behavior where default scalar values are treated as absent. Added/updated tests to cover both explicit optional defaults and all-null optional payloads.

@kafkiansky kafkiansky self-assigned this Apr 4, 2026
@kafkiansky kafkiansky added the bug Something isn't working label Apr 4, 2026
@kafkiansky kafkiansky merged commit 61d3274 into 0.1.x Apr 4, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant