...
1syntax = "proto3";
2
3package grpc.gateway.examples.internal.proto.examplepb;
4
5import "google/api/annotations.proto";
6
7option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/examplepb";
8
9// Foo2Service (-- This comment should be excluded from OpenAPI output --)
10service Foo2Service {
11 // Foo Summary (-- This comment should be excluded from OpenAPI output --)
12 //
13 // (-- This comment should be excluded from OpenAPI output --)
14 // Description
15 rpc Foo2(Foo2Request) returns (Foo2Reply) {
16 option (google.api.http) = {
17 post: "/v1/example/foo"
18 body: "*"
19 };
20 }
21}
22
23// Foo2Request (-- This comment should be excluded from OpenAPI output --)
24message Foo2Request {
25 // Username.
26 // (-- This comment should be excluded
27 // from OpenAPI output --)
28 // Same row, single line break doesn't count on markdown.
29 string username = 1;
30 // Password.
31 // (-- This comment should be excluded
32 // from OpenAPI output --)
33 //
34 // New row.
35 string password = 2;
36}
37
38// (-- This comment should be excluded from OpenAPI output --)
39message Foo2Reply {}
View as plain text