Skip to content

fix(decode): choose TextUnmarshaler over BinaryUnmarshaler for str format (#10)#46

Merged
xe-nvdk merged 1 commit intov6from
fix/text-unmarshaler-str-format
Mar 2, 2026
Merged

fix(decode): choose TextUnmarshaler over BinaryUnmarshaler for str format (#10)#46
xe-nvdk merged 1 commit intov6from
fix/text-unmarshaler-str-format

Conversation

@xe-nvdk
Copy link
Member

@xe-nvdk xe-nvdk commented Mar 2, 2026

Summary

Test plan

  • New test TestTextUnmarshalerWithStrFormat verifies str → TextUnmarshaler and bin → BinaryUnmarshaler
  • Full test suite passes

…rmat (#10)

When a type implements both interfaces, the decoder now peeks at the
wire format and dispatches to TextUnmarshaler for str codes and
BinaryUnmarshaler for bin codes.
@xe-nvdk xe-nvdk force-pushed the fix/text-unmarshaler-str-format branch from 1ab2f48 to be64e92 Compare March 2, 2026 21:16
@xe-nvdk xe-nvdk merged commit 82f46cf into v6 Mar 2, 2026
3 checks passed
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.

TextUnmarshaler ignored when msgpack format is str (upstream #370)

1 participant