Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unmarshalling of registered types #53

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

cpuguy83
Copy link
Member

@cpuguy83 cpuguy83 commented Nov 6, 2024

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 <[email protected]>
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 <[email protected]>
@dmcgowan dmcgowan merged commit 125f779 into containerd:main Nov 7, 2024
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.

2 participants