From abe45ec1472dca65676c339c0c75827cecc6d1e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Vall=C3=A9s?= Date: Wed, 20 Dec 2023 09:54:37 +0100 Subject: [PATCH] chore: keep internal OpenAPI The OpenAPI definitions for endpoints that haven't been corrected yet are still useful, though maybe not ready for public visibility. An internal OpenAPI document is generated to preserve these definitions. --- buf.gen.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/buf.gen.yaml b/buf.gen.yaml index d9b4d916..d83454f3 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -37,6 +37,15 @@ plugins: - allow_merge=true,merge_file_name=openapiv2 - version=true - omit_enum_default_value=true + - plugin: buf.build/grpc-ecosystem/openapiv2:v2.15.2 + out: openapiv2/internal + opt: + - output_format=yaml + - json_names_for_fields=false + - allow_merge=true,merge_file_name=openapiv2 + - version=true + - omit_enum_default_value=true + - visibility_restriction_selectors=INTERNAL - plugin: buf.build/community/pseudomuto-doc:v1.5.1 out: gen/grpc-doc opt: