...

Text file src/github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/examplepb/ignore_comment.proto

Documentation: github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/examplepb

     1syntax = "proto3";
     2
     3package grpc.gateway.examples.internal.proto.examplepb;
     4
     5import "google/api/annotations.proto";
     6import "protoc-gen-openapiv2/options/annotations.proto";
     7
     8option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/examplepb";
     9
    10// This comment should be excluded from OpenAPI output
    11service FooService {
    12  // This comment should be excluded from OpenAPI output
    13  rpc Foo(FooRequest) returns (FooReply) {
    14    option (google.api.http) = {
    15      post: "/v1/example/foo"
    16      body: "*"
    17    };
    18  }
    19}
    20
    21// This comment should be excluded from OpenAPI output
    22message FooRequest {
    23  // This comment should be excluded from OpenAPI output
    24  string username = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "This annotation should be preserved"}];
    25  // This comment should be excluded from OpenAPI output
    26  string password = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {title: "This annotation should be preserved"}];
    27}
    28
    29// This comment should be excluded from OpenAPI output
    30message FooReply {}

View as plain text