v2.6.0
Major features in this release include:
- The ability to auto-generate the
x-nullable
field from proto3 optional in openapiv2 contributed by Ken Brownfield (@irridia) in #2215 - More comprehensive openapiv2 name generation options contributed by @alperengozeten and Malte Isberner (@misberner) in #2310
As well as various bug fixes, including the auto generation of the Www-Authenticate
header when returning an 401 Unauthorized error (#2314), better google.protobuf.Any
representation in openapiv2 files (#2292) and much more.
This is also the first release to automatically publish the Protobuf plugins to the Buf Schema Registry. See https://buf.build/grpc-ecosystem/plugins. These can be used together with the new buf generate
remote plugins feature: https://docs.buf.build/configuration/v1/buf-gen-yaml#name-or-remote. An example buf.gen.yaml
using these new plugins looks like this:
version: v1
plugins:
- remote: buf.build/library/plugins/go:v1.27.1-1
out: gen/go
opt: paths=source_relative
- remote: buf.build/library/plugins/go-grpc:v1.1.0-2
out: gen/go
opt: paths=source_relative
- remote: buf.build/grpc-ecosystem/plugins/grpc-gateway:v2.6.0-1
out: gen/go
opt: paths=source_relative
- remote: buf.build/grpc-ecosystem/plugins/openapiv2:v2.6.0-1
out: gen/openapiv2