Skip to content

Releases: grpc-ecosystem/grpc-gateway

v2.0.0

14 Oct 08:16
75c0d83
Compare
Choose a tag to compare

The grpc-gateway maintainers are pleased to announce the long anticipated release of v2.0.0

v2.0.0 includes ground-up rewrites of many parts of the runtime and generators to be compatible with the Go APIv2 Protobuf release. To help transition users to v2, we've put together a migration guide. Among the notable changes in v2 are:

  • Support the Go APIv2 Protobuf stack
  • Many changes to make the grpc-gateway behaviour more consistent with Protobuf JSON conventions
  • Rename protoc-gen-swagger to protoc-gen-openapiv2
  • Minimize the public API
  • Consolidation of error handling configuration
  • Enable HTTPBodyMarshaler by default
  • Use the gRPC status JSON representation for errors
  • Much more!

For a complete list of all the changes, please see the full changelog.

Note that GOPATH users will no longer be supported with this release. This was not a decision taken lightly, but on balance we expect the community to have moved to modules, or be in a position to move to modules, and the maintenance burden is significant smaller for us. If this is a significant issue for your or your organization, please let us know on the Slack channel or by raising an issue.

v1.15.2

10 Oct 14:46
Compare
Choose a tag to compare

The grpc-gateway v1 is in maintenance mode, you are encouraged to migrate to v2.

See #1223 for more information and check out our v2 migration guide.

v1.15.2 (2020-10-10)

Full Changelog

v1.15.1

10 Oct 14:44
Compare
Choose a tag to compare

This will be the last release of v1 on the master branch

The grpc-gateway v1 is in maintenance mode, you are encouraged to migrate to v2.

See #1223 for more information and check out our v2 migration guide.

v1.15.1 (2020-10-10)

Full Changelog

v2.0.0-beta.5

24 Sep 12:53
Compare
Choose a tag to compare

We've got some really cool new features in this release:

  • New support for using YAML to annotate the generated swagger output. See the docs for more information. This was implemented by @jasonewang.
  • New support for generating a gateway for completely unannotated proto files. See the docs for more information. The was implemented by @plaflamme.

v2.0.0-beta.5 (2020-09-24)

Full Changelog

Closed issues:

  • Sending NULL for int64/uint64 types calls gRPC server with zero-value #1681
  • protoc-gen-swagger: allow -output dir #1679
  • Empty json array is passed as nil #1673
  • Lightweight support for custom protobuf annotations on RPCs #1666
  • undefined: runtime.ServerTransportStream #1664
  • Merge swagger definitions generated by swaggo/swag init and protoc --swagger_out command #1651
  • Add base_path as constant in generated gateway files #1650
  • Support service definitions without any annotations. #1649
  • proto directory names preclude using protos in python code #1647
  • Generated files contain calls to methods that don't exist #1643
  • TestConvertDuration/invalid_duration failure #1630
  • runtime.WithForwardResponseOption\(\) is not respected #1625
  • same field in params #1621
  • Use grpc gateway to create rest API whose body is a list #1617
  • grpc-gateway equivalent in the grpc python package #1613
  • Migrate away from importing github.com/golang/protobuf/{descriptor,proto} in generated code (similar to #1260). #1608
  • runtime.WithForwardResponseOption compile error #1607
  • Apply FiedMask to the GET (and LIST) returns #1605
  • code: 32603, message types.Coin is neither a v1 or v2 Message #1603
  • protoc-gen-swagger map type filed doesn't support options.openapiv2_field #1601
  • 🐛HttpRule is stated in unannotated_echo_service.yaml, but warning is still issued #1578
  • CVE-2020-14001: Unintended read access in kramdown gem #1579

Merged pull requests:

Read more

v1.15.0

18 Sep 10:33
96e0d89
Compare
Choose a tag to compare

The grpc-gateway v1 is in maintenance mode, you are encouraged to migrate to v2.

See #1223 for more information and check out our v2 migration guide.

v1.15.0 (2020-09-18)

Full Changelog

New Features:

Closed issues:

  • Empty json array is passed as nil #1673
  • Lightweight support for custom protobuf annotations on RPCs #1666
  • undefined: runtime.ServerTransportStream #1664
  • Merge swagger definitions generated by swaggo/swag init and protoc --swagger_out command #1651
  • Add base_path as constant in generated gateway files #1650
  • Support service definitions without any annotations. #1649
  • proto directory names preclude using protos in python code #1647

Merged pull requests:

v1.14.8

03 Sep 18:14
0688fa4
Compare
Choose a tag to compare

The grpc-gateway v1 is in maintenance mode, you are encouraged to migrate to v2.

See #1223 for more information and check out our v2 migration guide.

v1.14.8 (2020-09-03)

Full Changelog

Closed issues:

  • Generated files contain calls to methods that don't exist #1643
  • TestConvertDuration/invalid_duration failure #1630
  • runtime.WithForwardResponseOption\(\) is not respected #1625
  • same field in params #1621
  • Use grpc gateway to create rest API whose body is a list #1617
  • grpc-gateway equivalent in the grpc python package #1613
  • Migrate away from importing github.com/golang/protobuf/{descriptor,proto} in generated code (similar to #1260). #1608
  • runtime.WithForwardResponseOption compile error #1607
  • Apply FiedMask to the GET (and LIST) returns #1605
  • code: 32603, message types.Coin is neither a v1 or v2 Message #1603
  • protoc-gen-swagger map type filed doesn't support options.openapiv2_field #1601
  • 🐛HttpRule is stated in unannotated_echo_service.yaml, but warning is still issued #1578

Merged pull requests:

v1.14.7

12 Aug 08:47
37837bc
Compare
Choose a tag to compare

The grpc-gateway v1 is in maintenance mode, you are encouraged to migrate to v2.

See #1223 for more information and check out our v2 migration guide.

v1.14.7 (2020-08-12)

Full Changelog

Fixed bugs:

  • Flaky Timeout test #1258

Closed issues:

  • CVE-2020-14001: Unintended read access in kramdown gem #1579
  • [v2] expose defaultHTTPErrorHandler (and perhaps defaultStreamErrorHandler) #1576
  • protoc-gen-swagger: Add prefix to all paths #1567
  • Generate Swagger description using proto comments. #1552
  • incorrect field mask generated for deeply nested struct #1549
  • connection error occurs if the grpc server restarts #1547
  • Log spam during attempt to append remote address to the XFF header when the transport is a unix domain socket #1538
  • Can not use evans cli or other grpc gui tool when using http annotations #1535
  • reverse gateway file not getting generated (.pb.gw.go) not getting generated no error just warning #1530
  • does this support grpc-node? #1525
  • With v2 we should be able to detect real NotFound responses from gRPC service NotFound responses #1513
  • runtime.MarshalerForRequest: Content-Type should have been parsed before querying mimeMap #1505
  • Invalid test cases for runtime.Marshaler #1501
  • Need help in enabling log in grpc-gateway application #1495
  • WithForwardResponseOption can't cast proto.Message when response_body is defined on the rpc method #1493
  • should it support jsonp? #1480
  • Any option to set per route middleware instead of using the global route/handler/mux middleware? #1473
  • How to JSON Transcode Protos With Naming Equal to Generated Typescript Repeated Fields #1465
  • Boolean type should not have a format (OAS) #1463
  • Performance implications of using the grpc-gateway for a REST API #1458
  • Trying to generate properties using the camelCase from underscores #1426
  • question: tensorflow serving #1425
  • Documentation: clarify RegisterXXXHandlerServer compromises #1398
  • errors when building with bazel #1392
  • Enums from other packages as path parameters is missing package name in front of enumValMap. #1203
  • Reference not imported properly #1190
  • Merging swagger specs fails to use rpc comments #664

Merged pull requests:

Read more

v2.0.0-beta.4

10 Aug 10:20
1ee87af
Compare
Choose a tag to compare
v2.0.0-beta.4 Pre-release
Pre-release

v2.0.0-beta.4 (2020-08-10)

Full Changelog

Fixed bugs:

  • Flaky Timeout test #1258

Closed issues:

  • [v2] expose defaultHTTPErrorHandler (and perhaps defaultStreamErrorHandler) #1576
  • protoc-gen-swagger: Add prefix to all paths #1567
  • Generate Swagger description using proto comments. #1552
  • incorrect field mask generated for deeply nested struct #1549
  • connection error occurs if the grpc server restarts #1547
  • Log spam during attempt to append remote address to the XFF header when the transport is a unix domain socket #1538
  • Can not use evans cli or other grpc gui tool when using http annotations #1535
  • reverse gateway file not getting generated (.pb.gw.go) not getting generated no error just warning #1530
  • does this support grpc-node? #1525
  • With v2 we should be able to detect real NotFound responses from gRPC service NotFound responses #1513
  • runtime.MarshalerForRequest: Content-Type should have been parsed before querying mimeMap #1505
  • Invalid test cases for runtime.Marshaler #1501
  • Need help in enabling log in grpc-gateway application #1495
  • WithForwardResponseOption can't cast proto.Message when response_body is defined on the rpc method #1493
  • should it support jsonp? #1480
  • Any option to set per route middleware instead of using the global route/handler/mux middleware? #1473
  • How to JSON Transcode Protos With Naming Equal to Generated Typescript Repeated Fields #1465
  • Boolean type should not have a format (OAS) #1463
  • Performance implications of using the grpc-gateway for a REST API #1458
  • Trying to generate properties using the camelCase from underscores #1426
  • question: tensorflow serving #1425
  • Documentation: clarify RegisterXXXHandlerServer compromises #1398
  • errors when building with bazel #1392
  • Enums from other packages as path parameters is missing package name in front of enumValMap. #1203
  • Reference not imported properly #1190
  • Merging swagger specs fails to use rpc comments #664

Merged pull requests:

Read more

v2.0.0-beta.3

25 May 14:00
Compare
Choose a tag to compare
v2.0.0-beta.3 Pre-release
Pre-release

v2.0.0-beta.3 (2020-05-25)

Full Changelog

Merged pull requests:

v2.0.0-beta.1

25 May 10:50
Compare
Choose a tag to compare
v2.0.0-beta.1 Pre-release
Pre-release

This release marks the completion of all the must-haves for v2.0.0, as detailed in #1223. We still wait for a few external dependencies before we can seriously consider a stable v2 release, but at this point we invite users to try out v2 and give feedback on the changes.

If you are trying out v2, please consult the migration guide before raising issues.

v2.0.0-beta.1 (2020-05-25)

Full Changelog

Implemented enhancements:

  • Feature request: support of go protocol buffer v2 #1147

Fixed bugs:

  • Bazel tests are flaky #968

Closed issues:

  • Merging swagger specs (for multiple protos belonging to same package) fails to emit summary for some RPCs #1387
  • Remove result/error envelope in streaming RPC response #1254
  • cleanup: rename 'swagger' references to 'openapi' #675
  • Swagger: JSON definitions aren't CamelCased #375
  • Support emitting default values in JSON #233

Merged pull requests: