Skip to content

Commit

Permalink
Adding support for more well known types in descriptor (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankcpdixit authored and achew22 committed Nov 14, 2018
1 parent 73373e5 commit 1659831
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions protoc-gen-grpc-gateway/descriptor/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,16 @@ var (
}

wellKnownTypeConv = map[string]string{
".google.protobuf.Timestamp": "runtime.Timestamp",
".google.protobuf.Duration": "runtime.Duration",
".google.protobuf.Timestamp": "runtime.Timestamp",
".google.protobuf.Duration": "runtime.Duration",
".google.protobuf.StringValue": "runtime.StringValue",
".google.protobuf.BytesValue": "runtime.BytesValue",
".google.protobuf.Int32Value": "runtime.Int32Value",
".google.protobuf.UInt32Value": "runtime.UInt32Value",
".google.protobuf.Int64Value": "runtime.Int64Value",
".google.protobuf.UInt64Value": "runtime.UInt64Value",
".google.protobuf.FloatValue": "runtime.FloatValue",
".google.protobuf.DoubleValue": "runtime.DoubleValue",
".google.protobuf.BoolValue": "runtime.BoolValue",
}
)

0 comments on commit 1659831

Please sign in to comment.