Skip to content

Fix Decoder.Map transform not taken into account when handling various field=="" cases#75

Open
earwin wants to merge 2 commits intojszwec:masterfrom
rainsouthafrica:map-empty-handling
Open

Fix Decoder.Map transform not taken into account when handling various field=="" cases#75
earwin wants to merge 2 commits intojszwec:masterfrom
rainsouthafrica:map-empty-handling

Conversation

@earwin
Copy link
Copy Markdown

@earwin earwin commented May 1, 2026

Description

There is a number of cases when empty fields get special treatment, e.g. around omitempty tag & pointer field types. Currently, they are all handled before Decoder.Map gets a chance to modify the value, preventing it from e.g. making "null" map to a nil pointer. This PR fixes that.

Checklist

  • Code compiles without errors
  • Added new tests for the provided functionality
  • All tests are passing

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.

1 participant