grpc-gateway
grpc-gateway copied to clipboard
openapi exclude the element of the visibility annotation
🚀 Feature
I have a lot of protobuf files, within which I only want some messages/rpcs etc to be rendered, and while it could be solved by annotating them as internal, etc, I'd like that to be implicit by their lack of annotation, to avoid having to annotate all the messages and RPCs.
I think a flag named include_without_visibility
could be added.
And it gives us a clearer idea of which methods will be rendered.
Thanks for creating the issue, see #3187 for more context. The ask here is to make the experience of hiding parts of a protobuf file easier by adding a new flag that implicitly hides any messages/rpcs/enums/services without any annotations. This is easier for the user than annotating all their messages/rpcs/enums/services. I'm not convinced such a flag is worth adding since this is a narrow use case and there is a workaround. More feedback from other users would help.