grpc-gateway v2.12.0 版本更新介绍
发布日期: 2022-10-17
版本号: v2.12.0
本次更新主要针对grpc-gateway进行了多项功能优化和问题修复,包括:修复请求体中oneof字段的支持问题;修正HTTP方法(如DELETE /foo/bar:archive场景)的路由匹配逻辑;升级googleapis依赖库;改进protoc-gen-openapiv2工具,使其支持RPC可见性设置透传至消息、使用json_name生成必填字段名称,并完善消息类型属性的必填校验。此外,新增了服务标签相关功能:支持通过配置文件定义服务标签、可选项禁用标签渲染、为标签添加描述及扩展属性。其他改进包含包加载机制确定性优化。本次共有7位新贡献者参与,包括@erademacher、@patrick246等开发者提交了首次代码贡献。
更新内容 (中文)
详见原始内容
更新内容 (原始)
What’s Changed
- fix: support for oneof fields in request bodies by @isbang in https://github.com/grpc-ecosystem/grpc-gateway/pull/2867
- mux: calculate verb correctly for cases like DELETE /foo/bar:archive when user provided wrong method by @jonathaningram in https://github.com/grpc-ecosystem/grpc-gateway/pull/2870
- Update googleapis dependency by @johanbrandhorst in https://github.com/grpc-ecosystem/grpc-gateway/pull/2875
- protoc-gen-openapiv2: RPC visibility setting transitively applied to messages by @erademacher in https://github.com/grpc-ecosystem/grpc-gateway/pull/2880
- protoc-gen-openapiv2: Use json_name when generating required field names by @patrick246 in https://github.com/grpc-ecosystem/grpc-gateway/pull/2885
- fix: support service tags in OpenAPI config file (#2817) by @y-takuya in https://github.com/grpc-ecosystem/grpc-gateway/pull/2858
- feat: add option to disable rendering of service tags by @kkolur in https://github.com/grpc-ecosystem/grpc-gateway/pull/2928
- fix: required properties of message type are required in OpenAPI by @gostajonasson in https://github.com/grpc-ecosystem/grpc-gateway/pull/2904
- feat: add option to add description to tags by @same-id in https://github.com/grpc-ecosystem/grpc-gateway/pull/2939
- add extensions for Tag object by @kkolur in https://github.com/grpc-ecosystem/grpc-gateway/pull/2950
- Make registry load packages deterministically by @gonzaloserrano in https://github.com/grpc-ecosystem/grpc-gateway/pull/2945
New Contributors
- @erademacher made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/2880
- @patrick246 made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/2885
- @y-takuya made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/2858
- @kkolur made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/2928
- @gostajonasson made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/2904
- @same-id made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/2939
- @gonzaloserrano made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/2945
Full Changelog: https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.11.3...v2.12.0
下载链接
- grpc-gateway_2.12.0_checksums.txt
- protoc-gen-grpc-gateway-v2.12.0-darwin-arm64
- protoc-gen-grpc-gateway-v2.12.0-darwin-x86_64
- protoc-gen-grpc-gateway-v2.12.0-linux-arm64
- protoc-gen-grpc-gateway-v2.12.0-linux-x86_64
- protoc-gen-grpc-gateway-v2.12.0-windows-arm64.exe
- protoc-gen-grpc-gateway-v2.12.0-windows-x86_64.exe
- protoc-gen-openapiv2-v2.12.0-darwin-arm64
- protoc-gen-openapiv2-v2.12.0-darwin-x86_64
- protoc-gen-openapiv2-v2.12.0-linux-arm64
- protoc-gen-openapiv2-v2.12.0-linux-x86_64
- protoc-gen-openapiv2-v2.12.0-windows-arm64.exe
- protoc-gen-openapiv2-v2.12.0-windows-x86_64.exe