Skip to content

fix: do not materialize message fields set to null#72

Open
SAY-5 wants to merge 1 commit into
bufbuild:mainfrom
SAY-5:fix-null-message-field
Open

fix: do not materialize message fields set to null#72
SAY-5 wants to merge 1 commit into
bufbuild:mainfrom
SAY-5:fix-null-message-field

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 13, 2026

Unmarshal was calling Mutable on message-kind fields before checking the node, so a null value left an empty message instead of clearing the field, diverging from protojson. This skips materializing the field for null (except google.protobuf.Value, where null is a value). Closes #55.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 13, 2026

CLA assistant check
All committers have signed the CLA.

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.

Unmarshal converts null into an empty message

2 participants