Skip to content

Commit 6bf7a02

Browse files
mayankcpdixitachew22
authored andcommitted
Adding support for more well known types in descriptor (grpc-ecosystem#809)
1 parent 1ff6618 commit 6bf7a02

File tree

1 file changed

+11
-2
lines changed
  • protoc-gen-grpc-gateway/descriptor

1 file changed

+11
-2
lines changed

protoc-gen-grpc-gateway/descriptor/types.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,16 @@ var (
451451
}
452452

453453
wellKnownTypeConv = map[string]string{
454-
".google.protobuf.Timestamp": "runtime.Timestamp",
455-
".google.protobuf.Duration": "runtime.Duration",
454+
".google.protobuf.Timestamp": "runtime.Timestamp",
455+
".google.protobuf.Duration": "runtime.Duration",
456+
".google.protobuf.StringValue": "runtime.StringValue",
457+
".google.protobuf.BytesValue": "runtime.BytesValue",
458+
".google.protobuf.Int32Value": "runtime.Int32Value",
459+
".google.protobuf.UInt32Value": "runtime.UInt32Value",
460+
".google.protobuf.Int64Value": "runtime.Int64Value",
461+
".google.protobuf.UInt64Value": "runtime.UInt64Value",
462+
".google.protobuf.FloatValue": "runtime.FloatValue",
463+
".google.protobuf.DoubleValue": "runtime.DoubleValue",
464+
".google.protobuf.BoolValue": "runtime.BoolValue",
456465
}
457466
)

0 commit comments

Comments
 (0)