Skip to content

QA: google.protobuf.Any mapping when expected type is specified #35

@WizMe-M

Description

@WizMe-M

I have an operation that works like google.longrunning.Operation (src here)

As it seen here and here, there is an option to specify Any's type.

So, when I create rpc and specify option of what metadata and response type are:

rpc StartOperation(StartOperationRequest) returns (operation.v1.Operation) {
  option (operation.v1.operation) = {
    metadata: 'MyMetadata'
    response: 'MyResult'
  };
}

I want to grpc-api-gateway to convert these Anys into specified messages.

Is it possible to?


Also I do expect that Any will have only necessary fields (no type and value) when:

  • OpenAPI specification is generated
  • Response with Any is sent to a client

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions