grpc-gateway v2.25.1 版本更新介绍
发布日期: 2024-12-20
版本号: v2.25.1
该版本(v2.25.1)包含相对于v2.25.0的破坏性变更,移除了openapiv2选项包中结构体类型已弃用的
EnumDescriptor
和Descriptor
方法。此项变更是为了支持生成符合Protobuf Opaque规范的新Hybrid API,若用户仍依赖这些方法可通过提交问题反馈。主要变更由@johanbrandhorst通过#5088号PR实现,在protoc-gen-openapiv2中新增混合文件生成功能。完整版本日志可通过对比v2.25.0至v2.25.1的代码库查看。
更新内容 (中文)
在 openapiv2 生成文件中支持新的 Opaque API
本版本包含自 v2.25.0 以来的破坏性变更,移除了 openapiv2 选项包结构体类型中之前已弃用的 EnumDescriptor
和 Descriptor
方法。这似乎是生成新混合 API 的必要条件。如果您依赖这些功能请提交 issue,我们将评估解决方案。
变更内容
- protoc-gen-openapiv2: 通过 @johanbrandhorst 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/5088 生成混合文件
完整变更日志: https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.25.0...v2.25.1
更新内容 (原始)
Support the new Opaque API in openapiv2 generated files
This release contains breaking changes from v2.25.0, in that the previously deprecated EnumDescriptor
and Descriptor
methods on the struct types in the openapiv2 options package have been removed. This seems to be a requirement to generate the new Hybrid API. Please open an issue if you were depending on these functions and we’ll see what we can do about it.
What’s Changed
- protoc-gen-openapiv2: generate hybrid files by @johanbrandhorst in https://github.com/grpc-ecosystem/grpc-gateway/pull/5088
Full Changelog: https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.25.0...v2.25.1
下载链接
- grpc-gateway_2.25.1_checksums.txt
- multiple.intoto.jsonl
- protoc-gen-grpc-gateway-v2.25.1-darwin-arm64
- protoc-gen-grpc-gateway-v2.25.1-darwin-x86_64
- protoc-gen-grpc-gateway-v2.25.1-linux-arm64
- protoc-gen-grpc-gateway-v2.25.1-linux-x86_64
- protoc-gen-grpc-gateway-v2.25.1-windows-arm64.exe
- protoc-gen-grpc-gateway-v2.25.1-windows-x86_64.exe
- protoc-gen-openapiv2-v2.25.1-darwin-arm64
- protoc-gen-openapiv2-v2.25.1-darwin-x86_64
- protoc-gen-openapiv2-v2.25.1-linux-arm64
- protoc-gen-openapiv2-v2.25.1-linux-x86_64
- protoc-gen-openapiv2-v2.25.1-windows-arm64.exe
- protoc-gen-openapiv2-v2.25.1-windows-x86_64.exe