File: remove_internal_comment.proto

package info (click to toggle)
golang-github-grpc-ecosystem-grpc-gateway 2.20.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,236 kB
  • sloc: javascript: 357; makefile: 147; sh: 26
file content (39 lines) | stat: -rw-r--r-- 1,096 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
syntax = "proto3";

package grpc.gateway.examples.internal.proto.examplepb;

import "google/api/annotations.proto";

option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/examplepb";

// Foo2Service (-- This comment should be excluded from OpenAPI output --)
service Foo2Service {
  // Foo Summary (-- This comment should be excluded from OpenAPI output --)
  //
  // (-- This comment should be excluded from OpenAPI output --)
  // Description
  rpc Foo2(Foo2Request) returns (Foo2Reply) {
    option (google.api.http) = {
      post: "/v1/example/foo"
      body: "*"
    };
  }
}

// Foo2Request (-- This comment should be excluded from OpenAPI output --)
message Foo2Request {
  // Username.
  // (-- This comment should be excluded
  // from OpenAPI output --)
  // Same row, single line break doesn't count on markdown.
  string username = 1;
  // Password.
  // (-- This comment should be excluded
  // from OpenAPI output --)
  //
  // New row.
  string password = 2;
}

// (-- This comment should be excluded from OpenAPI output --)
message Foo2Reply {}