Skip to content

Support automatic FieldMasks with PATCH  #107

Description

@nemith

GRPC-Gateway supports a PATCH feature1 that when:

  1. a non * body is provided
  2. there is a update_mask field present that is of a type google.api.FieldMask
  3. And the method is PATCH

Then the fields specified in the body are automatically added to the update path.

This is extremely useful for transcoding a idomatic REST interface to gRPC while stil supporting stanard gRPC interfaces.

  1. https://grpc-ecosystem.github.io/grpc-gateway/docs/mapping/patch_feature/

This is needed for projects like envoy who use this library. (See envoyproxy/envoy#10235)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions