From bd6279153a595aa638085e1ad1b64adee87d9947 Mon Sep 17 00:00:00 2001 From: Livio Spring Date: Mon, 26 Jan 2026 13:20:46 +0100 Subject: [PATCH] fix: use versioned openapi protoc plugin for docs and console (#11423) # Which Problems Are Solved The docs and console API generators used an unversioned `buf.build/grpc-ecosystem/openapiv2` plugin for the code generation. The latest version has an issue and fails. # How the Problems Are Solved - pin the plugin to the latest running version # Additional Changes none # Additional Context - noticed internally - requires backport to at least v4.x - https://github.com/grpc-ecosystem/grpc-gateway/issues/6274 --- console/buf.gen.yaml | 4 ++-- docs/buf.gen.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/console/buf.gen.yaml b/console/buf.gen.yaml index bfb5f7e51..dd46b6511 100644 --- a/console/buf.gen.yaml +++ b/console/buf.gen.yaml @@ -9,6 +9,6 @@ plugins: - plugin: buf.build/grpc/web:v1.5.0 out: src/app/proto/generated opt: import_style=typescript,mode=grpcweb - - plugin: buf.build/grpc-ecosystem/openapiv2 + - plugin: buf.build/grpc-ecosystem/openapiv2:v2.27.4 out: src/app/proto/generated - opt: allow_delete_body \ No newline at end of file + opt: allow_delete_body diff --git a/docs/buf.gen.yaml b/docs/buf.gen.yaml index e55a87440..def7c823d 100644 --- a/docs/buf.gen.yaml +++ b/docs/buf.gen.yaml @@ -3,7 +3,7 @@ version: v2 managed: enabled: true plugins: - - remote: buf.build/grpc-ecosystem/openapiv2 + - remote: buf.build/grpc-ecosystem/openapiv2:v2.27.4 out: .artifacts/openapi opt: - allow_delete_body