Skip to content

Fix unmarshalling of registered types - #53

Merged
dmcgowan merged 1 commit into
containerd:mainfrom
cpuguy83:main_fix_json
Nov 7, 2024
Merged

Fix unmarshalling of registered types#53
dmcgowan merged 1 commit into
containerd:mainfrom
cpuguy83:main_fix_json

Conversation

@cpuguy83

@cpuguy83 cpuguy83 commented Nov 6, 2024

Copy link
Copy Markdown
Member

In 7d3d258 I inadvterantly removed support for json unmarshalling for the case when a type implements a protobuf message but is a type that is registered.

For types that are registered through the Register function typeurl is supposed to ignore the interfaces that the type implements and just use json.

This change restores that behavior.

cpuguy83 added a commit to cpuguy83/typeurl that referenced this pull request Nov 6, 2024
This is a faithful backport of containerd#53

---

In 7d3d258 I inadvterantly removed
support for json unmarshalling for the case when a type implements a
protobuf message but is a type that is registered.

For types that are registered through the `Register` function typeurl
is supposed to ignore the interfaces that the type implements and just
use json.

This change restores that behavior.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
In 7d3d258 I inadvterantly removed
support for json unmarshalling for the case when a type implements a
protobuf message but is a type that is registered.

For types that are registered through the `Register` function typeurl
is supposed to ignore the interfaces that the type implements and just
use json.

This change restores that behavior.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@dmcgowan
dmcgowan merged commit 125f779 into containerd:main Nov 7, 2024
@cpuguy83
cpuguy83 deleted the main_fix_json branch May 27, 2026 20:55
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.

2 participants