blob: 5151fd5a652041d8d32822b927c965c381fd815d [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001syntax = "proto3";
2
3package grpc.gateway.protoc_gen_swagger.options;
4
5option go_package = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options";
6
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07007import "google/protobuf/descriptor.proto";
Arjun E K57a7fcb2020-01-30 06:44:45 +00008import "protoc-gen-swagger/options/openapiv2.proto";
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07009
10extend google.protobuf.FileOptions {
11 // ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
12 //
13 // All IDs are the same, as assigned. It is okay that they are the same, as they extend
14 // different descriptor messages.
15 Swagger openapiv2_swagger = 1042;
16}
17extend google.protobuf.MethodOptions {
18 // ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
19 //
20 // All IDs are the same, as assigned. It is okay that they are the same, as they extend
21 // different descriptor messages.
22 Operation openapiv2_operation = 1042;
23}
24extend google.protobuf.MessageOptions {
25 // ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
26 //
27 // All IDs are the same, as assigned. It is okay that they are the same, as they extend
28 // different descriptor messages.
29 Schema openapiv2_schema = 1042;
30}
31extend google.protobuf.ServiceOptions {
32 // ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
33 //
34 // All IDs are the same, as assigned. It is okay that they are the same, as they extend
35 // different descriptor messages.
36 Tag openapiv2_tag = 1042;
37}
38extend google.protobuf.FieldOptions {
39 // ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
40 //
41 // All IDs are the same, as assigned. It is okay that they are the same, as they extend
42 // different descriptor messages.
43 JSONSchema openapiv2_field = 1042;
44}