You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will be accepted fine when media type is protobuf but will render incorrectly to JSON/YAML (for diffs or if you want to do PATCH because protobufs for patches are not accepted). Since generated.proto loses all information that the field is meant to be inline, we need some other way of having that information available during json marshaling.
Actually I found that standard lib encoding/json works as desired by noting the field is "anonymous" (embedded). Looks like this should be an issue to gogo/protobuf/jsonpb instead.
Here's specific case: https://github.com/kubernetes/api/blob/d04500c8c3dda9c980b668c57abc2ca61efcf5c4/core/v1/types.go#L1957-L1958
This will be accepted fine when media type is
protobuf
but will render incorrectly to JSON/YAML (for diffs or if you want to doPATCH
because protobufs for patches are not accepted). Since generated.proto loses all information that the field is meant to be inline, we need some other way of having that information available during json marshaling.Example:
Should be:
The text was updated successfully, but these errors were encountered: